Skip to content

Commit

Permalink
small corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira committed Jun 5, 2023
1 parent bf1a1d9 commit 08e14f7
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,13 @@ paths:
responses:
200:
description: successful operation
headers:
X-Total-Count:
schema:
type: integer
description: Total records count
content:
application/json:
schema:
$ref: "./tests.yaml#/components/schemas/TestResourceList"
application/yaml:
schema:
$ref: "./tests.yaml#/components/schemas/TestResourceList"
500:
description: "problem with getting tests"
post:
Expand All @@ -340,13 +338,19 @@ paths:
application/json:
schema:
$ref: "./tests.yaml#/components/schemas/TestResource"
text/yaml:
schema:
$ref: "./tests.yaml#/components/schemas/TestResource"
responses:
200:
201:
description: successful operation
content:
application/json:
schema:
$ref: "./tests.yaml#/components/schemas/TestResource"
text/yaml:
schema:
$ref: "./tests.yaml#/components/schemas/TestResource"
400:
description: "trying to create a test with an already existing ID"
/tests/{testId}:
Expand All @@ -365,6 +369,9 @@ paths:
application/json:
schema:
$ref: "./tests.yaml#/components/schemas/TestResource"
text/yaml:
schema:
$ref: "./tests.yaml#/components/schemas/TestResource"
500:
description: "problem with getting a test"
put:
Expand All @@ -380,6 +387,9 @@ paths:
application/json:
schema:
$ref: "./tests.yaml#/components/schemas/TestResource"
text/yaml:
schema:
$ref: "./tests.yaml#/components/schemas/TestResource"
responses:
204:
description: successful operation
Expand All @@ -394,8 +404,15 @@ paths:
description: "delete a test"
operationId: deleteTest
responses:
"204":
description: OK
"200":
description: successful operation
content:
application/json:
schema:
$ref: "./tests.yaml#/components/schemas/TestResource"
text/yaml:
schema:
$ref: "./tests.yaml#/components/schemas/TestResource"
/tests/{testId}/run:
post:
tags:
Expand Down

0 comments on commit 08e14f7

Please sign in to comment.