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