From 9de2c91191ce1b9b6021a699e738f456e00f1998 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Tue, 1 Oct 2019 17:13:11 +0200 Subject: [PATCH] Add openApi for /citizens/{citizen}/votes/articles --- src/main/resources/openApi.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/main/resources/openApi.yaml b/src/main/resources/openApi.yaml index 2972407..e4ee021 100644 --- a/src/main/resources/openApi.yaml +++ b/src/main/resources/openApi.yaml @@ -513,6 +513,37 @@ paths: 201: description: Return only http status 201 on success + /citizens/{citizen}/votes/articles: + parameters: + - name: citizen + in: path + description: The ID of citizen + example: 35a0a0eb-56ca-24f5-55f3-e0bac0dd048c + required: true + schema: + type: string + format: uuid + get: + security: + - JWTAuth: [] + summary: all article vote for one citizen + tags: + - vote + responses: + 201: + description: Votes + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/Paginated' + - type: object + properties: + result: + type: array + items: + $ref: '#/components/schemas/VoteResponse' + components: parameters: page: