Browse Source

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

pull/13/head
Nathanaël Jourdane 2 years ago
committed by guhur
parent
commit
026d5e9c4c
  1. 2
      openapi/components/responses/judge-not-found.yaml
  2. 2
      openapi/components/responses/judgment-not-found.yaml
  3. 2
      openapi/components/responses/poll-not-found.yaml
  4. 2
      openapi/components/responses/unauthorized.yaml
  5. 2
      openapi/components/schemas/candidate.yaml
  6. 0
      openapi/components/schemas/error.yaml
  7. 0
      openapi/components/schemas/grade.yaml
  8. 0
      openapi/components/schemas/judge.yaml
  9. 0
      openapi/components/schemas/judgment.yaml
  10. 6
      openapi/components/schemas/poll.yaml
  11. 2
      openapi/components/schemas/result.yaml
  12. 0
      openapi/components/securitySchemes/judge-auth.yaml
  13. 0
      openapi/components/securitySchemes/poll-auth.yaml
  14. 0
      openapi/components/securitySchemes/result-auth.yaml
  15. 4
      openapi/paths/judgments@{judgment-id}.yaml
  16. 4
      openapi/paths/polls.yaml
  17. 10
      openapi/paths/polls@{poll-id}.yaml
  18. 4
      openapi/paths/polls@{poll-id}@judges.yaml
  19. 6
      openapi/paths/polls@{poll-id}@judges@{judge-id}@.yaml
  20. 4
      openapi/paths/polls@{poll-id}@judgments.yaml
  21. 4
      openapi/paths/polls@{poll-id}@results.yaml

2
openapi/components/responses/JudgeNotFound.yaml → openapi/components/responses/judge-not-found.yaml

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

2
openapi/components/responses/JudgmentNotFound.yaml → openapi/components/responses/judgment-not-found.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
openapi/components/responses/PollNotFound.yaml → openapi/components/responses/poll-not-found.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
openapi/components/responses/Unauthorized.yaml → openapi/components/responses/unauthorized.yaml

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

2
openapi/components/schemas/Candidate.yaml → openapi/components/schemas/candidate.yaml

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

0
openapi/components/schemas/Error.yaml → openapi/components/schemas/error.yaml

0
openapi/components/schemas/Grade.yaml → openapi/components/schemas/grade.yaml

0
openapi/components/schemas/Judge.yaml → openapi/components/schemas/judge.yaml

0
openapi/components/schemas/Judgment.yaml → openapi/components/schemas/judgment.yaml

6
openapi/components/schemas/Poll.yaml → openapi/components/schemas/poll.yaml

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

2
openapi/components/schemas/Result.yaml → openapi/components/schemas/result.yaml

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

0
openapi/components/securitySchemes/judgeAuth.yaml → openapi/components/securitySchemes/judge-auth.yaml

0
openapi/components/securitySchemes/pollAuth.yaml → openapi/components/securitySchemes/poll-auth.yaml

0
openapi/components/securitySchemes/resultAuth.yaml → openapi/components/securitySchemes/result-auth.yaml

4
openapi/paths/judgments@{judgment-id}.yaml

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

4
openapi/paths/polls.yaml

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

10
openapi/paths/polls@{poll-id}.yaml

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

4
openapi/paths/polls@{poll-id}@judges.yaml

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

6
openapi/paths/polls@{poll-id}@judges@{judge-id}@.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: []

4
openapi/paths/polls@{poll-id}@judgments.yaml

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

4
openapi/paths/polls@{poll-id}@results.yaml

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