chore(build)

pull/17/head
Dominique Merle 4 years ago
parent efc90c2738
commit 1d331fef80

@ -17,7 +17,7 @@ paths:
/polls: /polls:
get: get:
operationId: get-polls operationId: get-polls
summary: Gets all polls. summary: Gets all polls
responses: responses:
'200': '200':
description: OK description: OK
@ -29,7 +29,7 @@ paths:
$ref: '#/components/schemas/poll' $ref: '#/components/schemas/poll'
post: post:
operationId: create-poll operationId: create-poll
summary: Creates a poll. summary: Creates a poll
requestBody: requestBody:
required: true required: true
content: content:
@ -59,7 +59,7 @@ paths:
list-poll-results: list-poll-results:
$ref: '#/components/links/list-poll-results' $ref: '#/components/links/list-poll-results'
'400': '400':
description: Bad Request. Expect at least 2 proposals and a title. description: Bad Request. Provide at least 2 proposals and a title.
'/polls/{poll-id}': '/polls/{poll-id}':
parameters: parameters:
- in: path - in: path
@ -94,19 +94,23 @@ paths:
- pollAuth: [] - pollAuth: []
responses: responses:
'200': '200':
description: OK description: Poll was updated.
content: content:
application/json: application/json:
schema: schema:
type: array $ref: '#/components/schemas/poll'
items: '404':
$ref: '#/components/schemas/poll' $ref: '#/components/responses/poll-not-found'
delete: delete:
operationId: delete-poll operationId: delete-poll
summary: Deletes a poll summary: Deletes a poll
description: >
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)
responses: responses:
'200': '200':
description: OK description: Poll was deleted.
'404': '404':
$ref: '#/components/responses/poll-not-found' $ref: '#/components/responses/poll-not-found'
security: security:
@ -187,7 +191,7 @@ paths:
type: string type: string
post: post:
operationId: add-participant-to-poll operationId: add-participant-to-poll
description: Add a participant to a poll summary: Adds a participant to a poll
requestBody: requestBody:
content: content:
application/json: application/json:
@ -195,7 +199,7 @@ paths:
$ref: '#/components/schemas/participant' $ref: '#/components/schemas/participant'
responses: responses:
'200': '200':
description: Invitation was sent description: Invitation was sent.
content: content:
text/plain: text/plain:
schema: schema:
@ -211,7 +215,7 @@ paths:
type: string type: string
get: get:
operationId: get-poll-participant operationId: get-poll-participant
summary: Get a participant from a poll summary: Gets a participant from a poll
responses: responses:
'200': '200':
description: OK description: OK
@ -226,7 +230,7 @@ paths:
- pollAuth: [] - pollAuth: []
delete: delete:
operationId: delete-poll-participant operationId: delete-poll-participant
summary: Delete a participant from a poll summary: Deletes a participant from a poll
responses: responses:
'200': '200':
description: OK description: OK
@ -243,7 +247,7 @@ paths:
type: string type: string
get: get:
operationId: get-poll-results operationId: get-poll-results
description: Get results of a poll summary: Gets results of a poll
responses: responses:
'200': '200':
description: OK description: OK

Loading…
Cancel
Save