committed by
guhur
13 changed files with 81 additions and 81 deletions
-
80mv-openapi.yaml
-
4openapi/components/links/create-ballot.yaml
-
6openapi/components/links/delete-ballot.yaml
-
6openapi/components/links/delete-judgment.yaml
-
6openapi/components/links/get-ballot.yaml
-
6openapi/components/links/get-judgment.yaml
-
2openapi/components/responses/ballot-not-found.yaml
-
0openapi/components/schemas/ballot.yaml
-
6openapi/components/schemas/candidate.yaml
-
10openapi/mv-openapi-root.yaml
-
4openapi/paths/polls.yaml
-
16openapi/paths/polls@{poll-id}@ballots.yaml
-
16openapi/paths/polls@{poll-id}@ballots@{ballot-id}.yaml
@ -1,6 +1,6 @@ |
|||
operationId: 'create-judgment' |
|||
operationId: 'create-ballot' |
|||
parameters: |
|||
userId: $response.body#/id |
|||
description: > |
|||
The `id` value returned in the response can be used as the `poll-id` parameter |
|||
in POST /polls/{poll-id}/judgments. |
|||
in POST /polls/{poll-id}/ballots. |
@ -0,0 +1,6 @@ |
|||
operationId: 'delete-ballot' |
|||
parameters: |
|||
ballotId: $response.body#/id |
|||
description: > |
|||
The `id` value returned in the response can be used as the `ballot-id` |
|||
parameter in DELETE /polls/{poll-id}/ballots/{ballot-id}. |
@ -1,6 +0,0 @@ |
|||
operationId: 'delete-judgment' |
|||
parameters: |
|||
judgmentId: $response.body#/id |
|||
description: > |
|||
The `id` value returned in the response can be used as the `judgment-id` |
|||
parameter in DELETE /polls/{poll-id}/judgments/{judgment-id}. |
@ -0,0 +1,6 @@ |
|||
operationId: 'get-ballot' |
|||
parameters: |
|||
ballotId: $response.body#/id |
|||
description: > |
|||
The `id` value returned in the response can be used as the `ballot-id` |
|||
parameter in GET /polls/{poll-id}/ballots/{ballot-id}. |
@ -1,6 +0,0 @@ |
|||
operationId: 'get-judgment' |
|||
parameters: |
|||
judgmentId: $response.body#/id |
|||
description: > |
|||
The `id` value returned in the response can be used as the `judgment-id` |
|||
parameter in GET /polls/{poll-id}/judgments/{judgment-id}. |
@ -1,4 +1,4 @@ |
|||
description: The specified judgment was not found |
|||
description: The specified ballot was not found |
|||
content: |
|||
application/json: |
|||
schema: |
Write
Preview
Loading…
Cancel
Save
Reference in new issue