Skip to content

Commit 5cf72a7

Browse files
committed
New route for /snapshots/snapshotId.
1 parent d55210e commit 5cf72a7

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

swagger.yaml

+27-5
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ paths:
6060
produces:
6161
- application/json
6262
parameters:
63-
- in: query
64-
name: id
65-
description: UUID of snapshot
66-
required: false
67-
type: string
6863
- in: query
6964
name: count
7065
description: Number of snapshots to return
@@ -103,6 +98,33 @@ paths:
10398
items:
10499
$ref: "#/definitions/Snapshot"
105100

101+
/snapshots/{snapshotId}:
102+
get:
103+
tags:
104+
- snapshot
105+
summary: Return a single snapshot from CTM
106+
description: Returns a specific snapshot object identified by snapshotId
107+
operationId: getSnapshot
108+
produces:
109+
- application/json
110+
parameters:
111+
- in: query
112+
name: snapshotId
113+
description: ID of snapshot to return
114+
required: true
115+
type: string
116+
responses:
117+
"404":
118+
description: NotFoundError
119+
schema:
120+
$ref: "#/definitions/ErrorMessage"
121+
"200":
122+
description: successful operation
123+
schema:
124+
type: object
125+
items:
126+
$ref: "#/definitions/Snapshot"
127+
106128
definitions:
107129
ErrorMessage:
108130
type: object

0 commit comments

Comments
 (0)