CHANGE: added autoLogout to Doc + json in struct
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user