Browse Source

Rename links files to fit operationIds

pull/13/head
Nathanaël Jourdane 2 years ago
committed by guhur
parent
commit
2d72c9afbe
  1. 0
      openapi/components/links/add-judge-to-poll.yaml
  2. 2
      openapi/components/links/create-judgment.yaml
  3. 2
      openapi/components/links/delete-judgment.yaml
  4. 0
      openapi/components/links/delete-poll.yaml
  5. 0
      openapi/components/links/get-judgment.yaml
  6. 0
      openapi/components/links/get-poll.yaml
  7. 2
      openapi/components/links/list-poll-results.yaml
  8. 0
      openapi/components/links/update-poll.yaml
  9. 20
      openapi/paths/polls.yaml
  10. 8
      openapi/paths/polls@{poll-id}@judgments.yaml

0
openapi/components/links/InviteByPollId.yaml → openapi/components/links/add-judge-to-poll.yaml

2
openapi/components/links/JudgeByPollId.yaml → openapi/components/links/create-judgment.yaml

@ -1,4 +1,4 @@
operationRef: 'create-poll-judgment'
operationRef: 'create-judgment'
parameters:
userId: $response.body#/id
description: >

2
openapi/components/links/DelJudgmentByJudgmentId.yaml → openapi/components/links/delete-judgment.yaml

@ -1,4 +1,4 @@
operationId: 'delete-poll-judgment'
operationId: 'delete-judgment'
parameters:
judgmentId: $response.body#/id
description: >

0
openapi/components/links/DelPollByPollId.yaml → openapi/components/links/delete-poll.yaml

0
openapi/components/links/GetJudgmentByJudgmentId.yaml → openapi/components/links/get-judgment.yaml

0
openapi/components/links/GetPollByPollId.yaml → openapi/components/links/get-poll.yaml

2
openapi/components/links/ResultsByPollId.yaml → openapi/components/links/list-poll-results.yaml

@ -1,4 +1,4 @@
operationRef: 'get-poll-results'
operationRef: 'list-poll-results'
parameters:
pollId: $response.body#/id
description: >

0
openapi/components/links/SetPollByPollId.yaml → openapi/components/links/update-poll.yaml

20
openapi/paths/polls.yaml

@ -31,15 +31,15 @@ post:
type: string
description: Id of the created poll.
links:
GetPollByPollId:
$ref: ../components/links/GetPollByPollId.yaml
SetPollByPollId:
$ref: ../components/links/SetPollByPollId.yaml
DelPollByPollId:
$ref: ../components/links/DelPollByPollId.yaml
JudgeByPollId:
$ref: ../components/links/JudgeByPollId.yaml
ResultsByPollId:
$ref: ../components/links/ResultsByPollId.yaml
get-poll:
$ref: ../components/links/get-poll.yaml
update-poll:
$ref: ../components/links/update-poll.yaml
delete-poll:
$ref: ../components/links/delete-poll.yaml
create-judgment:
$ref: ../components/links/create-judgment.yaml
list-poll-results:
$ref: ../components/links/list-poll-results.yaml
'400':
description: Bad Request. Expect at least 2 candidates and a title.

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

@ -28,7 +28,7 @@ post:
type: string
description: Id of the created judgment.
links:
GetJudgmentByJudgmentId:
$ref: ../components/links/GetJudgmentByJudgmentId.yaml
DelJudgmentByJudgmentId:
$ref: ../components/links/DelJudgmentByJudgmentId.yaml
get-judgment:
$ref: ../components/links/get-judgment.yaml
delete-judgment:
$ref: ../components/links/delete-judgment.yaml
Loading…
Cancel
Save