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' => [
Request::METHOD_GET => true,
Request::METHOD_HEAD => true,
Request::METHOD_POST => true,
],
],
'suggestHouseholdByAccompanyingPeriodParticipation' => [

View File

@ -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: