added env switch for empty day rendering + switched from 255 to 254 for auto logout

This commit is contained in:
2025-04-10 09:16:20 +02:00
parent 19251eefed
commit 71e65e9b17
8 changed files with 116 additions and 1172 deletions

View File

@@ -28,9 +28,7 @@
"paths": {
"/time": {
"get": {
"tags": [
"booking"
],
"tags": ["booking"],
"summary": "Gets all the bookings from one card_uid",
"description": "Returns all the bookings optionally filtered with cardID",
"operationId": "getBooking",
@@ -100,11 +98,7 @@
"check_in_out": {
"type": "integer",
"example": 1,
"enum": [
1,
2,
255
]
"enum": [1, 2, 254]
},
"timestamp": {
"type": "string",
@@ -131,9 +125,7 @@
},
"/time/new": {
"put": {
"tags": [
"booking"
],
"tags": ["booking"],
"summary": "Create new Booking",
"description": "Creates a new booking with the supplied parameters",
"operationId": "pcreateBooking",
@@ -171,11 +163,7 @@
"required": true,
"schema": {
"type": "integer",
"enum": [
1,
2,
255
]
"enum": [1, 2, 254]
}
}
],
@@ -203,11 +191,7 @@
"check_in_out": {
"type": "integer",
"example": 1,
"enum": [
1,
2,
255
]
"enum": [1, 2, 254]
},
"timestamp": {
"type": "string",
@@ -228,9 +212,7 @@
}
},
"get": {
"tags": [
"booking"
],
"tags": ["booking"],
"summary": "Create new Booking",
"description": "Creates a new booking with the supplied parameters",
"operationId": "gcreateBooking",
@@ -277,11 +259,7 @@
"required": true,
"schema": {
"type": "integer",
"enum": [
1,
2,
255
]
"enum": [1, 2, 254]
}
}
],
@@ -309,11 +287,7 @@
"check_in_out": {
"type": "integer",
"example": 1,
"enum": [
1,
2,
255
]
"enum": [1, 2, 254]
},
"timestamp": {
"type": "string",
@@ -339,11 +313,9 @@
},
"/logout": {
"get": {
"tags": [
"booking"
],
"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)",
"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=254)",
"operationId": "autoLogout",
"responses": {
"200": {
@@ -412,11 +384,7 @@
"check_in_out": {
"type": "integer",
"example": 1,
"enum": [
1,
2,
255
]
"enum": [1, 2, 254]
},
"timestamp": {
"type": "string",
@@ -450,11 +418,7 @@
"check_in_out": {
"type": "integer",
"example": 1,
"enum": [
1,
2,
255
]
"enum": [1, 2, 254]
},
"timestamp": {
"type": "string",