dodelej me z pc

This commit is contained in:
2026-05-06 19:56:38 +02:00
parent b6fdf1de98
commit 7e4736b2ce
19 changed files with 4313 additions and 95 deletions
+2
View File
@@ -15,6 +15,8 @@ post:
$ref: "../../schemas/_index.yml#/DayIndex"
foodIndex:
$ref: "../../schemas/_index.yml#/FoodIndex"
slot:
$ref: "../../schemas/_index.yml#/MealSlot"
responses:
"200":
$ref: "../../api.yml#/components/responses/ClientDataResponse"
+2
View File
@@ -16,6 +16,8 @@ post:
$ref: "../../schemas/_index.yml#/LunchChoice"
dayIndex:
$ref: "../../schemas/_index.yml#/DayIndex"
slot:
$ref: "../../schemas/_index.yml#/MealSlot"
responses:
"200":
$ref: "../../api.yml#/components/responses/ClientDataResponse"
+2
View File
@@ -13,6 +13,8 @@ post:
$ref: "../../schemas/_index.yml#/LunchChoice"
dayIndex:
$ref: "../../schemas/_index.yml#/DayIndex"
slot:
$ref: "../../schemas/_index.yml#/MealSlot"
responses:
"200":
$ref: "../../api.yml#/components/responses/ClientDataResponse"
+8
View File
@@ -1,6 +1,14 @@
post:
operationId: setBuyer
summary: Nastavení/odnastavení aktuálně přihlášeného uživatele jako objednatele pro stav "Budu objednávat" pro aktuální den.
requestBody:
required: false
content:
application/json:
schema:
properties:
slot:
$ref: "../../schemas/_index.yml#/MealSlot"
responses:
"200":
description: Stav byl úspěšně změněn.
+2
View File
@@ -11,6 +11,8 @@ post:
$ref: "../../schemas/_index.yml#/DayIndex"
note:
type: string
slot:
$ref: "../../schemas/_index.yml#/MealSlot"
responses:
"200":
$ref: "../../api.yml#/components/responses/ClientDataResponse"
+5
View File
@@ -9,6 +9,11 @@ get:
type: integer
minimum: 0
maximum: 4
- in: query
name: slot
description: Slot jídla. Pokud není předán, je použit výchozí slot (oběd).
schema:
$ref: "../schemas/_index.yml#/MealSlot"
responses:
"200":
$ref: "../api.yml#/components/responses/ClientDataResponse"
+12
View File
@@ -58,6 +58,9 @@ ClientData:
type: array
items:
$ref: "#/PendingQr"
slot:
description: Slot jídla, ke kterému se tato data vztahují
$ref: "#/MealSlot"
# --- OBĚDY ---
UserLunchChoice:
@@ -130,6 +133,15 @@ LunchChoice:
- OBJEDNAVAM
- NEOBEDVAM
- ROZHODUJI
MealSlot:
description: Slot jídla - oběd nebo extra jídlo (večeře, pozdní oběd)
type: string
enum:
- obed
- extra
x-enum-varnames:
- OBED
- EXTRA
DayIndex:
description: Index dne v týdnu (0 = pondělí, 4 = pátek)
type: integer