From 30c53b17f7b63632385ef01dc7ff171cbfe0bde5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 18 May 2021 19:13:30 +0200 Subject: [PATCH] documentation for get/index social issues api endpoint --- .../ChillPersonBundle/chill.api.specs.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/Bundle/ChillPersonBundle/chill.api.specs.yaml b/src/Bundle/ChillPersonBundle/chill.api.specs.yaml index 96d039287..ba6da70e7 100644 --- a/src/Bundle/ChillPersonBundle/chill.api.specs.yaml +++ b/src/Bundle/ChillPersonBundle/chill.api.specs.yaml @@ -178,6 +178,39 @@ components: readOnly: true paths: + /1.0/person/social-work/social-issue.json: + get: + tags: + - social-issue + summary: Return a list of social work + responses: + 200: + description: "ok" + /1.0/person/social-work/social-issue/{id}.json: + get: + tags: + - social-issue + summary: Return a social issue by id + parameters: + - name: id + in: path + required: true + description: The social issue's id + schema: + type: integer + format: integer + minimum: 1 + responses: + 200: + description: "ok" + content: + application/json: + schema: + $ref: '#/components/schemas/SocialIssue' + 404: + description: "not found" + 401: + description: "Unauthorized" /1.0/person/accompanying-course/{id}.json: get: tags: