Skip to content

Commit fb54be3

Browse files
committed
Document transaction background in apispec
1 parent 13135f9 commit fb54be3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

gramps_webapi/data/apispec.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4691,6 +4691,11 @@ paths:
46914691
required: false
46924692
type: boolean
46934693
description: "If true, force applying the transaction even if objects have been modified."
4694+
- name: background
4695+
in: query
4696+
required: false
4697+
type: boolean
4698+
description: "If true, the transactions will be applied in the background and status 202 will be returned."
46944699
- in: body
46954700
name: source
46964701
description: The database transaction
@@ -4705,6 +4710,13 @@ paths:
47054710
type: array
47064711
items:
47074712
$ref: "#/definitions/Transaction"
4713+
202:
4714+
description: "Accepted: transactions will be applied in the background."
4715+
schema:
4716+
type: object
4717+
properties:
4718+
task:
4719+
$ref: "#/definitions/TaskReference"
47084720
400:
47094721
description: "Bad Request: Malformed request could not be parsed."
47104722
401:

0 commit comments

Comments
 (0)