layout for form

This commit is contained in:
2021-06-21 13:38:43 +02:00
parent aa4a9e874a
commit 40fcb09082
16 changed files with 516 additions and 78 deletions

View File

@@ -798,6 +798,55 @@ paths:
422:
description: "object with validation errors"
/1.0/person/accompanying-course/{id}/work.json:
post:
tags:
- person
summary: "Add a work (AccompanyingPeriodwork) to the accompanying course"
parameters:
- name: id
in: path
required: true
description: The accompanying period's id
schema:
type: integer
format: integer
minimum: 1
requestBody:
description: "A new work"
required: true
content:
application/json:
schema:
type: object
properties:
type:
type: string
enum:
- 'accompanying_period_work'
startDate:
$ref: '#/components/schemas/Date'
endDate:
$ref: '#/components/schemas/Date'
examples:
create a work:
value:
type: accompanying_period_work
social_action:
id: 0
type: social_work_social_action
startDate:
datetime: 2021-06-20T15:00:00+0200
responses:
401:
description: "Unauthorized"
404:
description: "Not found"
200:
description: "OK"
422:
description: "object with validation errors"
/1.0/person/accompanying-course/{id}/confirm.json:
post:
tags: