add endpoint for getting suggestion on household by accompanying period

This commit is contained in:
2021-06-27 11:10:17 +02:00
parent a35f3363b2
commit a8bf478ee8
4 changed files with 160 additions and 1 deletions

View File

@@ -967,6 +967,36 @@ paths:
401:
description: "Unauthorized"
/1.0/person/household/suggest/by-person/{person_id}/through-accompanying-period-participation.json:
get:
tags:
- household
summary: Return households associated with the given person through accompanying periods
description: |
Return households associated with the given person throught accompanying periods participation.
The current household of the given person is excluded.
parameters:
- name: person_id
in: path
required: true
description: The person's id
schema:
type: integer
format: integer
minimum: 1
responses:
200:
description: "ok"
content:
application/json:
schema:
$ref: '#/components/schemas/Household'
404:
description: "not found"
401:
description: "Unauthorized"
/1.0/person/household/members/move.json:
post:
tags: