Skip to content

Commit 420b2a5

Browse files
committed
Add api spec for repair endpoint
1 parent 69ca261 commit 420b2a5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

gramps_webapi/data/apispec.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7058,6 +7058,38 @@ paths:
70587058
405:
70597059
description: "Method Not Allowed in single-tree setup."
70607060

7061+
/trees/{tree_id}/repair:
7062+
parameters:
7063+
- name: tree_id
7064+
in: path
7065+
required: true
7066+
type: string
7067+
description: "The tree ID."
7068+
post:
7069+
tags:
7070+
- trees
7071+
summary: "Check & repair a tree's Gramps database."
7072+
operationId: repairTree
7073+
security:
7074+
- Bearer: []
7075+
responses:
7076+
201:
7077+
description: "OK: Successful operation."
7078+
202:
7079+
description: "Accepted: task will be run in the background."
7080+
schema:
7081+
type: object
7082+
properties:
7083+
task:
7084+
$ref: "#/definitions/TaskReference"
7085+
401:
7086+
description: "Unauthorized: Missing authorization header."
7087+
403:
7088+
description: "Unauthorized: insufficient permissions."
7089+
422:
7090+
description: "Invalid: malformed tree ID."
7091+
7092+
70617093

70627094
##############################################################################
70637095
# Model definitions

0 commit comments

Comments
 (0)