diff --git a/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php b/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php index 6d2bf6d18..230ee5475 100644 --- a/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php +++ b/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php @@ -555,6 +555,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac 'methods' => [ Request::METHOD_GET => true, Request::METHOD_HEAD => true, + Request::METHOD_POST => true, ], ], 'suggestHouseholdByAccompanyingPeriodParticipation' => [ diff --git a/src/Bundle/ChillPersonBundle/chill.api.specs.yaml b/src/Bundle/ChillPersonBundle/chill.api.specs.yaml index e6fefa5df..6e015107b 100644 --- a/src/Bundle/ChillPersonBundle/chill.api.specs.yaml +++ b/src/Bundle/ChillPersonBundle/chill.api.specs.yaml @@ -1137,7 +1137,7 @@ paths: 200: description: "OK" 400: - description: "transition cannot be applyed" + description: "transition cannot be applied" /1.0/person/accompanying-course/{id}/confidential.json: post: @@ -1327,6 +1327,28 @@ paths: responses: 200: description: "ok" + post: + tags: + - household + requestBody: + description: "A household" + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/Household" + summary: Post a new household + responses: + 401: + description: "Unauthorized" + 404: + description: "Not found" + 200: + description: "OK" + 422: + description: "Unprocessable entity (validation errors)" + 400: + description: "transition cannot be applied" /1.0/person/household/{id}.json: get: @@ -1507,7 +1529,7 @@ paths: 422: description: "Unprocessable entity (validation errors)" 400: - description: "transition cannot be applyed" + description: "transition cannot be applied" /1.0/person/household/{id}/address.json: post: @@ -1543,7 +1565,7 @@ paths: 422: description: "Unprocessable entity (validation errors)" 400: - description: "transition cannot be applyed" + description: "transition cannot be applied" /1.0/person/social/social-action.json: get: