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 $ref: paths/polls.yaml
'/polls/{poll-id}': '/polls/{poll-id}':
$ref: 'paths/polls@{poll-id}.yaml' $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': '/polls/{poll-id}/judgments':
$ref: 'paths/polls@{poll-id}@judgments.yaml' $ref: 'paths/polls@{poll-id}@judgments.yaml'
'/judgments/{judgment-id}': '/polls/{poll-id}/judgments/{judgment-id}':
$ref: 'paths/judgments@{judgment-id}.yaml' $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}/': '/polls/{poll-id}/judges/{judge-id}/':
$ref: 'paths/polls@{poll-id}@judges@{judge-id}@.yaml' $ref: 'paths/polls@{poll-id}@judges@{judge-id}@.yaml'
'/polls/{poll-id}/results':
$ref: 'paths/polls@{poll-id}@results.yaml'
components: components:
securitySchemes: securitySchemes:
judgeAuth: judgeAuth:

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