household: API endpoint for posting a household

This commit is contained in:
nobohan 2022-04-15 12:23:16 +02:00
parent ae45f5f40b
commit bea019e9bc
2 changed files with 26 additions and 3 deletions

View File

@ -555,6 +555,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
'methods' => [ 'methods' => [
Request::METHOD_GET => true, Request::METHOD_GET => true,
Request::METHOD_HEAD => true, Request::METHOD_HEAD => true,
Request::METHOD_POST => true,
], ],
], ],
'suggestHouseholdByAccompanyingPeriodParticipation' => [ 'suggestHouseholdByAccompanyingPeriodParticipation' => [

View File

@ -1137,7 +1137,7 @@ paths:
200: 200:
description: "OK" description: "OK"
400: 400:
description: "transition cannot be applyed" description: "transition cannot be applied"
/1.0/person/accompanying-course/{id}/confidential.json: /1.0/person/accompanying-course/{id}/confidential.json:
post: post:
@ -1327,6 +1327,28 @@ paths:
responses: responses:
200: 200:
description: "ok" 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: /1.0/person/household/{id}.json:
get: get:
@ -1507,7 +1529,7 @@ paths:
422: 422:
description: "Unprocessable entity (validation errors)" description: "Unprocessable entity (validation errors)"
400: 400:
description: "transition cannot be applyed" description: "transition cannot be applied"
/1.0/person/household/{id}/address.json: /1.0/person/household/{id}/address.json:
post: post:
@ -1543,7 +1565,7 @@ paths:
422: 422:
description: "Unprocessable entity (validation errors)" description: "Unprocessable entity (validation errors)"
400: 400:
description: "transition cannot be applyed" description: "transition cannot be applied"
/1.0/person/social/social-action.json: /1.0/person/social/social-action.json:
get: get: