fix person create issues and some httpstatus

This commit is contained in:
2025-03-28 22:14:54 +01:00
parent 391907792c
commit 2d3f8cfa34

View File

@@ -157,6 +157,16 @@
"post": {
"summary": "Create a new person",
"operationId": "createPerson",
"parameters": [
{
"name": "X-User-ID",
"in": "header",
"required": true,
"schema": {
"type": "integer"
}
}
],
"requestBody": {
"required": true,
"content": {
@@ -192,21 +202,6 @@
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
}
}
}
}
}
@@ -382,7 +377,7 @@
"in": "path",
"required": true,
"schema": {
"type": "string"
"type": "integer"
}
},
{
@@ -546,6 +541,21 @@
}
}
}
},
"500": {
"description": "Internal server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
}
}
}
}
},