|
|
|
@ -8,6 +8,9 @@ parameters:
|
|
|
|
|
get:
|
|
|
|
|
operationId: get-poll
|
|
|
|
|
summary: Gets a poll by ID
|
|
|
|
|
tags:
|
|
|
|
|
- Poll Organization
|
|
|
|
|
- Poll Participation
|
|
|
|
|
responses:
|
|
|
|
|
'200':
|
|
|
|
|
description: OK
|
|
|
|
@ -20,6 +23,8 @@ get:
|
|
|
|
|
patch:
|
|
|
|
|
operationId: update-poll
|
|
|
|
|
summary: Updates a poll
|
|
|
|
|
tags:
|
|
|
|
|
- Poll Organization
|
|
|
|
|
requestBody:
|
|
|
|
|
required: true
|
|
|
|
|
content:
|
|
|
|
@ -45,6 +50,8 @@ delete:
|
|
|
|
|
All the Poll data will be permanently erased.
|
|
|
|
|
This includes all the corollary models (Tally, Ballots, …)
|
|
|
|
|
Only the Poll's author may delete it. (and wild admins)
|
|
|
|
|
tags:
|
|
|
|
|
- Poll Organization
|
|
|
|
|
responses:
|
|
|
|
|
'200':
|
|
|
|
|
description: Poll was deleted.
|
|
|
|
|