added env switch for empty day rendering + switched from 255 to 254 for auto logout
This commit is contained in:
@@ -8,3 +8,4 @@ EXPOSED_PORT=8000
|
||||
TZ=Europe/Berlin
|
||||
PGTZ=Europe/Berlin
|
||||
API_TOKEN=dont_access
|
||||
EMPTY_DAYS=false
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -88,7 +88,7 @@ paths:
|
||||
enum:
|
||||
- 1
|
||||
- 2
|
||||
- 255
|
||||
- 254
|
||||
responses:
|
||||
"200":
|
||||
description: successfully created booking
|
||||
@@ -137,7 +137,7 @@ paths:
|
||||
enum:
|
||||
- 1
|
||||
- 2
|
||||
- 255
|
||||
- 254
|
||||
responses:
|
||||
"200":
|
||||
description: successfully created booking
|
||||
@@ -154,7 +154,7 @@ paths:
|
||||
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":
|
||||
@@ -196,7 +196,7 @@ components:
|
||||
enum:
|
||||
- 1
|
||||
- 2
|
||||
- 255
|
||||
- 254
|
||||
timestamp:
|
||||
type: string
|
||||
format: date-time
|
||||
|
||||
Reference in New Issue
Block a user