Rename responses, schemas, and securityScheme files to fit naming convention

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

@ -2,4 +2,4 @@ description: The specified judge was not found
content:
application/json:
schema:
$ref: ../schemas/Error.yaml
$ref: ../schemas/error.yaml

@ -2,4 +2,4 @@ description: The specified judgment was not found
content:
application/json:
schema:
$ref: ../schemas/Error.yaml
$ref: ../schemas/error.yaml

@ -2,4 +2,4 @@ description: The specified poll was not found
content:
application/json:
schema:
$ref: ../schemas/Error.yaml
$ref: ../schemas/error.yaml

@ -2,4 +2,4 @@ description: Unauthorized
content:
application/json:
schema:
$ref: ../schemas/Error.yaml
$ref: ../schemas/error.yaml

@ -9,5 +9,5 @@ properties:
judgments:
type: array
items:
$ref: ./Judgment.yaml
$ref: ./judgment.yaml
description: The judgments received by this candidate.

@ -11,17 +11,17 @@ properties:
minItems: 2
maxItems: 20
items:
$ref: ./Candidate.yaml
$ref: ./candidate.yaml
description: The candidates being judged in a poll.
grades:
type: array
items:
$ref: ./Grade.yaml
$ref: ./grade.yaml
description: The grades on which one judges a candidate.
judges:
type: array
items:
$ref: ./Judge.yaml
$ref: ./judge.yaml
description: The judges that are allowed to participate to the election.
restrict_judges:
type: boolean

@ -1,7 +1,7 @@
type: object
properties:
poll:
$ref: ./Poll.yaml
$ref: ./poll.yaml
ranking:
type: array
items:

@ -13,7 +13,7 @@ get:
content:
application/json:
schema:
$ref: ../components/schemas/Judgment.yaml
$ref: ../components/schemas/judgment.yaml
delete:
operationId: delete-poll-judgment
summary: Deletes a judgment
@ -21,6 +21,6 @@ delete:
'200':
description: OK
'404':
$ref: ../components/responses/JudgmentNotFound.yaml
$ref: ../components/responses/judgment-not-found.yaml
security:
- judgeAuth: []

@ -9,7 +9,7 @@ get:
schema:
type: array
items:
$ref: ../components/schemas/Poll.yaml
$ref: ../components/schemas/poll.yaml
post:
operationId: create-poll
summary: Creates a poll.
@ -18,7 +18,7 @@ post:
content:
application/json:
schema:
$ref: ../components/schemas/Poll.yaml
$ref: ../components/schemas/poll.yaml
responses:
'201':
description: Created

@ -14,9 +14,9 @@ get:
content:
application/json:
schema:
$ref: ../components/schemas/Poll.yaml
$ref: ../components/schemas/poll.yaml
'404':
$ref: ../components/responses/PollNotFound.yaml
$ref: ../components/responses/poll-not-found.yaml
patch:
operationId: update-poll
summary: Updates a poll
@ -25,7 +25,7 @@ patch:
content:
application/json:
schema:
$ref: ../components/schemas/Poll.yaml
$ref: ../components/schemas/poll.yaml
security:
- {}
- pollAuth: []
@ -37,7 +37,7 @@ patch:
schema:
type: array
items:
$ref: ../components/schemas/Poll.yaml
$ref: ../components/schemas/poll.yaml
delete:
operationId: delete-poll
summary: Deletes a poll
@ -45,6 +45,6 @@ delete:
'200':
description: OK
'404':
$ref: ../components/responses/PollNotFound.yaml
$ref: ../components/responses/poll-not-found.yaml
security:
- pollAuth: []

@ -11,7 +11,7 @@ post:
content:
application/json:
schema:
$ref: ../components/schemas/Judge.yaml
$ref: ../components/schemas/judge.yaml
responses:
'200':
description: Invitation was sent
@ -20,4 +20,4 @@ post:
schema:
type: string
'404':
$ref: ../components/responses/PollNotFound.yaml
$ref: ../components/responses/poll-not-found.yaml

@ -13,9 +13,9 @@ get:
content:
application/json:
schema:
$ref: ../components/schemas/Judge.yaml
$ref: ../components/schemas/judge.yaml
'404':
$ref: ../components/responses/JudgeNotFound.yaml
$ref: ../components/responses/judge-not-found.yaml
security:
- {}
- pollAuth: []
@ -26,6 +26,6 @@ delete:
'200':
description: OK
'404':
$ref: ../components/responses/JudgeNotFound.yaml
$ref: ../components/responses/judge-not-found.yaml
security:
- pollAuth: []

@ -5,14 +5,14 @@ parameters:
schema:
type: string
post:
operationId: create-poll-judgment
operationId: create-judgment
summary: Creates a judgment
requestBody:
required: true
content:
application/json:
schema:
$ref: ../components/schemas/Judgment.yaml
$ref: ../components/schemas/judgment.yaml
security:
- {}
- judgeAuth: []

@ -13,6 +13,6 @@ get:
content:
text/plain:
schema:
$ref: ../components/schemas/Result.yaml
$ref: ../components/schemas/result.yaml
'404':
$ref: ../components/responses/PollNotFound.yaml
$ref: ../components/responses/poll-not-found.yaml

Loading…
Cancel
Save