Browse Source

move judgments endpoint in poll enpoint section

pull/13/head
Nathanaël Jourdane 2 years ago
committed by guhur
parent
commit
2c6836749b
  1. 12
      openapi/mv-openapi-root.yaml
  2. 9
      openapi/paths/polls@{poll-id}@judgments@{judgment-id}.yaml

12
openapi/mv-openapi-root.yaml

@ -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:

9
openapi/paths/judgments@{judgment-id}.yaml → openapi/paths/polls@{poll-id}@judgments@{judgment-id}.yaml

@ -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