parent
cbebaa06da
commit
812b979e46
@ -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: []
|
Loading…
Reference in new issue