From d8256b0ac5fbfe4aa37cbcb828300075a5aaabfe Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 30 Jun 2021 14:59:27 +0200 Subject: [PATCH] swagger person: adding origin routes --- .../ChillPersonBundle/chill.api.specs.yaml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/Bundle/ChillPersonBundle/chill.api.specs.yaml b/src/Bundle/ChillPersonBundle/chill.api.specs.yaml index 46223facf..9fba308c5 100644 --- a/src/Bundle/ChillPersonBundle/chill.api.specs.yaml +++ b/src/Bundle/ChillPersonBundle/chill.api.specs.yaml @@ -958,6 +958,41 @@ paths: + /1.0/person/accompanying-period/origin.json: + get: + tags: + - person + summary: Return a list of all origins + responses: + 200: + description: "ok" + + /1.0/person/accompanying-period/origin/{id}.json: + get: + tags: + - person + summary: Return an origin by id + parameters: + - name: id + in: path + required: true + description: The origin id + schema: + type: integer + format: integer + minimum: 1 + responses: + 200: + description: "ok" + 400: + description: "Bad Request" + 401: + description: "Unauthorized" + 404: + description: "Not found" + + + /1.0/person/household.json: get: tags: