CHANGE: added autoLogout to Doc + json in struct

This commit is contained in:
2024-09-25 13:18:54 +02:00
parent 3f5f82a304
commit ea364c8898
4 changed files with 130 additions and 14 deletions

View File

@@ -72,6 +72,7 @@
"tags": ["booking"],
"summary": "Gets all the bookings limited",
"description": "Returns all the bookings optionally filtered with cardID",
"operationId": "getBooking",
"parameters": [
{
"name": "card_uid",
@@ -83,7 +84,6 @@
}
}
],
"operationId": "addPet",
"responses": {
"200": {
"description": "Successful operation",
@@ -207,6 +207,29 @@
}
}
}
},
"/logout": {
"get": {
"tags": ["booking"],
"summary": "Logs out all logged in users",
"description": "With this call all actively logged in users (last booking today has check_in_out=1) will be logged out automaticly (check_in_out=255)",
"operationId": "autoLogout",
"responses": {
"200": {
"description": "Succesful",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/User"
}
}
}
}
}
}
}
}
},
"components": {
@@ -241,6 +264,28 @@
"xml": {
"name": "booking"
}
},
"User": {
"type": "object",
"properties": {
"card_uid": {
"type": "string",
"example": "test_card"
},
"name": {
"type": "string",
"example": "Mustermann"
},
"vorname": {
"type": "string",
"example": "Max"
},
"hauptbeschäftigungsort": {
"type": "integer",
"format": "int8",
"example": 1
}
}
}
}
}