diff --git a/api/openapi.json b/api/openapi.json index 40a83a1..5ca44d9 100644 --- a/api/openapi.json +++ b/api/openapi.json @@ -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" + } + } + } + } + } } } },