Skip to content

Commit 969f8a9

Browse files
committed
feat: add Swagger schema for GET /api/v1/check/{checkId}
1 parent 981ce19 commit 969f8a9

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

src/httpServer/swagger/api-v1.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,40 @@ paths:
211211
application/json:
212212
schema:
213213
$ref: '#/components/schemas/ErrorResponse'
214+
/api/v1/check/{checkId}:
215+
get:
216+
summary: Get a check by ID
217+
description: Returns a check by ID
218+
operationId: getCheckById
219+
tags:
220+
- Checks
221+
parameters:
222+
- name: checkId
223+
in: path
224+
required: true
225+
description: The ID of the check
226+
schema:
227+
type: integer
228+
example: 53
229+
responses:
230+
'200':
231+
description: A check
232+
content:
233+
application/json:
234+
schema:
235+
$ref: '#/components/schemas/Check'
236+
'404':
237+
description: Check not found
238+
content:
239+
application/json:
240+
schema:
241+
$ref: '#/components/schemas/ErrorResponse'
242+
'500':
243+
description: Internal server error
244+
content:
245+
application/json:
246+
schema:
247+
$ref: '#/components/schemas/ErrorResponse'
214248
/api/v1/check:
215249
get:
216250
summary: List all checks

0 commit comments

Comments
 (0)