Skip to content

Commit 2870bb3

Browse files
committed
fix: docs
1 parent 29a8442 commit 2870bb3

1 file changed

Lines changed: 36 additions & 37 deletions

File tree

docs/sample.yaml

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,42 @@ paths:
342342
"500":
343343
description: Internal server error
344344

345+
put:
346+
summary: Update a test case
347+
tags:
348+
- Test Cases
349+
parameters:
350+
- name: id
351+
in: path
352+
required: true
353+
schema:
354+
type: string
355+
format: uuid
356+
requestBody:
357+
required: true
358+
content:
359+
application/json:
360+
schema:
361+
$ref: "#/components/schemas/UpdateTestCaseRequest"
362+
responses:
363+
"200":
364+
description: Test case updated successfully
365+
content:
366+
application/json:
367+
schema:
368+
type: object
369+
properties:
370+
status:
371+
type: string
372+
test_case:
373+
$ref: "#/components/schemas/TestCase"
374+
"400":
375+
description: Invalid UUID or request
376+
"404":
377+
description: Test case not found
378+
"500":
379+
description: Internal server error
380+
345381
/question/{id}/testcases:
346382
get:
347383
summary: Get all test cases for a question (admin only)
@@ -432,43 +468,6 @@ paths:
432468
"500":
433469
description: Internal server error
434470

435-
/testcase/{id}:
436-
put:
437-
summary: Update a test case
438-
tags:
439-
- Test Cases
440-
parameters:
441-
- name: id
442-
in: path
443-
required: true
444-
schema:
445-
type: string
446-
format: uuid
447-
requestBody:
448-
required: true
449-
content:
450-
application/json:
451-
schema:
452-
$ref: "#/components/schemas/UpdateTestCaseRequest"
453-
responses:
454-
"200":
455-
description: Test case updated successfully
456-
content:
457-
application/json:
458-
schema:
459-
type: object
460-
properties:
461-
status:
462-
type: string
463-
test_case:
464-
$ref: "#/components/schemas/TestCase"
465-
"400":
466-
description: Invalid UUID or request
467-
"404":
468-
description: Test case not found
469-
"500":
470-
description: Internal server error
471-
472471
delete:
473472
summary: Delete a test case
474473
tags:

0 commit comments

Comments
 (0)