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' => [
|
'methods' => [
|
||||||
Request::METHOD_GET => true,
|
Request::METHOD_GET => true,
|
||||||
Request::METHOD_HEAD => true,
|
Request::METHOD_HEAD => true,
|
||||||
|
Request::METHOD_POST => true,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'suggestHouseholdByAccompanyingPeriodParticipation' => [
|
'suggestHouseholdByAccompanyingPeriodParticipation' => [
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user