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: content:
application/json: application/json:
schema: schema:
$ref: ../schemas/Error.yaml $ref: ../schemas/error.yaml

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save