Skip to content

Commit 7ad2a47

Browse files
committed
fix: describe options, which allow resetting clone to a specific snapshot, in the swagger spec
1 parent 71eaf0b commit 7ad2a47

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: api/swagger-spec/dblab_server_swagger.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ paths:
236236
name: "id"
237237
type: "string"
238238
description: "Clone ID"
239+
- in: body
240+
name: body
241+
description: "Reset object"
242+
required: false
243+
schema:
244+
$ref: '#/definitions/ResetClone'
239245
responses:
240246
404:
241247
description: "Not found"
@@ -709,6 +715,16 @@ definitions:
709715
db_name:
710716
type: "string"
711717

718+
ResetClone:
719+
type: "object"
720+
description: "Object defining specific snapshot used when resetting clone. Optional parameters `latest` and `snapshotID` must not be specified together"
721+
properties:
722+
snapshotID:
723+
type: "string"
724+
latest:
725+
type: "boolean"
726+
default: false
727+
712728
UpdateClone:
713729
type: "object"
714730
properties:

0 commit comments

Comments
 (0)