From e861c29b6983db87f6e216711fe8089f9def6da0 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Fri, 30 Aug 2019 10:08:53 +0200 Subject: [PATCH] feature #11: describe "create/delete follow to constitution" in openAPI --- src/main/resources/openApi.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/main/resources/openApi.yaml b/src/main/resources/openApi.yaml index f316f9a..3d15a07 100644 --- a/src/main/resources/openApi.yaml +++ b/src/main/resources/openApi.yaml @@ -351,6 +351,34 @@ paths: responses: 204: description: Return only http status 204 on success + /constitutions/{constitution}/follows: + parameters: + - name: constitution + in: path + description: The ID of constitution + example: e74be8e4-6823-47c4-bd1b-789725b2fa8e + required: true + schema: + type: string + format: uuid + post: + security: + - JWTAuth: [] + summary: Follow one constitution + tags: + - follow + responses: + 201: + description: Return only http status 201 on success + delete: + security: + - JWTAuth: [] + summary: Unfollow one constitution + tags: + - follow + responses: + 204: + description: Return only http status 204 on success components: