dodelej me z pc
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user