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 $ref: paths/users.yaml
'/users/{user-id}': '/users/{user-id}':
$ref: 'paths/users@{user-id}.yaml' $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: components:
securitySchemes: securitySchemes:
participantAuth: participantAuth:

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

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

Loading…
Cancel
Save