committed by
guhur
12 changed files with 84 additions and 82 deletions
-
62mv-openapi.yaml
-
4openapi/components/links/add-participant-to-poll.yaml
-
2openapi/components/responses/participant-not-found.yaml
-
2openapi/components/schemas/error.yaml
-
6openapi/components/schemas/participant.yaml
-
8openapi/components/schemas/poll.yaml
-
10openapi/mv-openapi-root.yaml
-
2openapi/paths/polls@{poll-id}@ballots.yaml
-
2openapi/paths/polls@{poll-id}@ballots@{ballot-id}.yaml
-
31openapi/paths/polls@{poll-id}@judges@{judge-id}@.yaml
-
6openapi/paths/polls@{poll-id}@participants.yaml
-
31openapi/paths/polls@{poll-id}@participants@{participant-id}@.yaml
@ -1,6 +1,6 @@ |
|||
operationId: 'add-judge-to-poll' |
|||
operationId: 'add-participant-to-poll' |
|||
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}/judges. |
|||
in POST /polls/{poll-id}/participants. |
@ -1,4 +1,4 @@ |
|||
description: The specified judge was not found |
|||
description: The specified participant was not found |
|||
content: |
|||
application/json: |
|||
schema: |
@ -1,31 +0,0 @@ |
|||
parameters: |
|||
- in: path |
|||
name: judge-id |
|||
required: true |
|||
schema: |
|||
type: string |
|||
get: |
|||
operationId: get-poll-judge |
|||
summary: Get a judge from a poll |
|||
responses: |
|||
'200': |
|||
description: OK |
|||
content: |
|||
application/json: |
|||
schema: |
|||
$ref: ../components/schemas/judge.yaml |
|||
'404': |
|||
$ref: ../components/responses/judge-not-found.yaml |
|||
security: |
|||
- {} |
|||
- pollAuth: [] |
|||
delete: |
|||
operationId: delete-poll-judge |
|||
summary: Delete a judge from a poll |
|||
responses: |
|||
'200': |
|||
description: OK |
|||
'404': |
|||
$ref: ../components/responses/judge-not-found.yaml |
|||
security: |
|||
- pollAuth: [] |
@ -0,0 +1,31 @@ |
|||
parameters: |
|||
- in: path |
|||
name: participant-id |
|||
required: true |
|||
schema: |
|||
type: string |
|||
get: |
|||
operationId: get-poll-participant |
|||
summary: Get a participant from a poll |
|||
responses: |
|||
'200': |
|||
description: OK |
|||
content: |
|||
application/json: |
|||
schema: |
|||
$ref: ../components/schemas/participant.yaml |
|||
'404': |
|||
$ref: ../components/responses/participant-not-found.yaml |
|||
security: |
|||
- {} |
|||
- pollAuth: [] |
|||
delete: |
|||
operationId: delete-poll-participant |
|||
summary: Delete a participant from a poll |
|||
responses: |
|||
'200': |
|||
description: OK |
|||
'404': |
|||
$ref: ../components/responses/participant-not-found.yaml |
|||
security: |
|||
- pollAuth: [] |
Write
Preview
Loading…
Cancel
Save
Reference in new issue