move judgments endpoint in poll enpoint section

pull/13/head
Nathanaël Jourdane 4 years ago committed by guhur
parent 026d5e9c4c
commit 2c6836749b

@ -17,16 +17,16 @@ paths:
$ref: paths/polls.yaml
'/polls/{poll-id}':
$ref: 'paths/polls@{poll-id}.yaml'
'/polls/{poll-id}/judges':
$ref: 'paths/polls@{poll-id}@judges.yaml'
'/polls/{poll-id}/results':
$ref: 'paths/polls@{poll-id}@results.yaml'
'/polls/{poll-id}/judgments':
$ref: 'paths/polls@{poll-id}@judgments.yaml'
'/judgments/{judgment-id}':
$ref: 'paths/judgments@{judgment-id}.yaml'
'/polls/{poll-id}/judgments/{judgment-id}':
$ref: 'paths/polls@{poll-id}@judgments@{judgment-id}.yaml'
'/polls/{poll-id}/judges':
$ref: 'paths/polls@{poll-id}@judges.yaml'
'/polls/{poll-id}/judges/{judge-id}/':
$ref: 'paths/polls@{poll-id}@judges@{judge-id}@.yaml'
'/polls/{poll-id}/results':
$ref: 'paths/polls@{poll-id}@results.yaml'
components:
securitySchemes:
judgeAuth:

@ -1,11 +1,16 @@
parameters:
- in: path
name: poll-id
required: true
schema:
type: string
- in: path
name: judgment-id
required: true
schema:
type: string
get:
operationId: get-poll-judgment
operationId: get-judgment
summary: Gets a judgment by ID
responses:
'200':
@ -15,7 +20,7 @@ get:
schema:
$ref: ../components/schemas/judgment.yaml
delete:
operationId: delete-poll-judgment
operationId: delete-judgment
summary: Deletes a judgment
responses:
'200':
Loading…
Cancel
Save