Merge branch 'master' into features/sql-vue-from-household-address-to-person

This commit is contained in:
2021-06-15 22:53:21 +02:00
208 changed files with 9047 additions and 6038 deletions

View File

@@ -875,18 +875,61 @@ paths:
type: object
properties:
person:
$ref: '#/components/schemas/PersonById'
$ref: '#/components/schemas/PersonById'
start_date:
$ref: '#/components/schemas/Date'
$ref: '#/components/schemas/Date'
position:
$ref: '#/components/schemas/HouseholdPosition'
$ref: '#/components/schemas/HouseholdPosition'
holder:
type: boolean
comment:
type: string
destination:
oneOf:
- $ref: '#/components/schemas/Household'
$ref: '#/components/schemas/Household'
examples:
Moving person to a new household:
value:
concerned:
-
person:
id: 0
type: person
position:
type: position
id: 1
start_date:
datetime: 2021-06-01T00:00:00+02:00
comment: "This is my comment for moving"
holder: false
destination:
type: household
Moving person to an existing household:
value:
concerned:
-
person:
id: 0
type: person
position:
type: position
id: 1
start_date:
datetime: 2021-06-01T00:00:00+02:00
comment: "This is my comment for moving"
holder: false
destination:
type: household
id: 54
Removing a person from any household:
value:
concerned:
-
person:
id: 0
type: person
start_date:
datetime: 2021-06-01T00:00:00+02:00
destination: null
responses:
401:
description: "Unauthorized"