You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
952 B
48 lines
952 B
parameters:
|
|
- in: path
|
|
name: poll-id
|
|
required: true
|
|
schema:
|
|
type: integer
|
|
format: int64
|
|
get:
|
|
summary: Gets a poll by ID
|
|
responses:
|
|
'200':
|
|
description: OK
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../components/schemas/Poll.yaml
|
|
'404':
|
|
$ref: ../components/responses/PollNotFound.yaml
|
|
patch:
|
|
summary: Updates a poll
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../components/schemas/Poll.yaml
|
|
security:
|
|
- {}
|
|
- pollAuth: []
|
|
responses:
|
|
'200':
|
|
description: OK
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: ../components/schemas/Poll.yaml
|
|
delete:
|
|
summary: Deletes a poll
|
|
responses:
|
|
'200':
|
|
description: OK
|
|
'404':
|
|
$ref: ../components/responses/PollNotFound.yaml
|
|
security:
|
|
- pollAuth: []
|