mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
household: API endpoint for posting a household
This commit is contained in:
parent
ae45f5f40b
commit
bea019e9bc
@ -555,6 +555,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
|
||||
'methods' => [
|
||||
Request::METHOD_GET => true,
|
||||
Request::METHOD_HEAD => true,
|
||||
Request::METHOD_POST => true,
|
||||
],
|
||||
],
|
||||
'suggestHouseholdByAccompanyingPeriodParticipation' => [
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user