Rename links files to fit operationIds

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

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

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

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

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

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

Loading…
Cancel
Save