feat: tag some paths

pull/17/head
Dominique Merle 4 years ago
parent 729ce952d8
commit 492bd2a033

@ -32,6 +32,13 @@ paths:
$ref: paths/users.yaml
'/users/{user-id}':
$ref: 'paths/users@{user-id}.yaml'
tags:
- name: Poll Organization
description: >
Paths about the organization of polls.
- name: Poll Participation
description: >
Paths about participating to a poll.
components:
securitySchemes:
participantAuth:

@ -1,6 +1,9 @@
get:
operationId: get-polls
summary: Gets all polls
tags:
- Poll Organization
- Poll Participation
responses:
'200':
description: OK
@ -13,6 +16,8 @@ get:
post:
operationId: create-poll
summary: Creates a poll
tags:
- Poll Organization
requestBody:
required: true
content:

@ -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.

Loading…
Cancel
Save