Fix bug posting birth- and deathdate

This commit is contained in:
2021-12-06 13:04:19 +00:00
committed by Julien Fastré
parent 5669f62fdc
commit cea7160d5a
3 changed files with 31 additions and 7 deletions

View File

@@ -353,6 +353,19 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Person"
examples:
Update a person:
value:
type: "person"
firstName: "string"
lastName: "string"
birthdate:
datetime: "2016-06-01T00:00:00+02:00"
deathdate:
datetime: "2021-06-01T00:00:00+02:00"
phonenumber: "string"
mobilenumber: "string"
gender: "male"
responses:
401:
description: "Unauthorized"
@@ -375,6 +388,19 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Person"
examples:
Create a new person:
value:
type: "person"
firstName: "string"
lastName: "string"
birthdate:
datetime: "2016-06-01T00:00:00+02:00"
deathdate:
datetime: "2021-06-01T00:00:00+02:00"
phonenumber: "string"
mobilenumber: "string"
gender: "male"
responses:
200:
description: "OK"