Skip to content

Commit

Permalink
Document transaction background in apispec
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Dec 31, 2024
1 parent 13135f9 commit fb54be3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gramps_webapi/data/apispec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4691,6 +4691,11 @@ paths:
required: false
type: boolean
description: "If true, force applying the transaction even if objects have been modified."
- name: background
in: query
required: false
type: boolean
description: "If true, the transactions will be applied in the background and status 202 will be returned."
- in: body
name: source
description: The database transaction
Expand All @@ -4705,6 +4710,13 @@ paths:
type: array
items:
$ref: "#/definitions/Transaction"
202:
description: "Accepted: transactions will be applied in the background."
schema:
type: object
properties:
task:
$ref: "#/definitions/TaskReference"
400:
description: "Bad Request: Malformed request could not be parsed."
401:
Expand Down

0 comments on commit fb54be3

Please sign in to comment.