diff --git a/openapi/mv-openapi-root.yaml b/openapi/mv-openapi-root.yaml index 2b10b24..937d7e7 100644 --- a/openapi/mv-openapi-root.yaml +++ b/openapi/mv-openapi-root.yaml @@ -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: diff --git a/openapi/paths/polls.yaml b/openapi/paths/polls.yaml index 25ad15e..16d213d 100644 --- a/openapi/paths/polls.yaml +++ b/openapi/paths/polls.yaml @@ -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: diff --git a/openapi/paths/polls@{poll-id}.yaml b/openapi/paths/polls@{poll-id}.yaml index 2420028..8c859de 100644 --- a/openapi/paths/polls@{poll-id}.yaml +++ b/openapi/paths/polls@{poll-id}.yaml @@ -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.