feat: import jen některých dnů

feat: násobení jídel/cviků
feat: refaktor napojování šablon
This commit is contained in:
Ondřej Anděl committed 2026-09-30 19:10:54 +02:00
1 parent c3990d80f8
commit 8dac67bdd1
37 files changed
+2314 -481

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
post:
operationId: setActivityMultiplier
summary: |
Nastaví násobek aktivity přímo z přehledu dne, bez úpravy ostatních údajů.
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [id, date, multiplier]
properties:
id:
description: Identifikátor záznamu
type: string
date:
description: Datum záznamu (YYYY-MM-DD)
type: string
format: date
multiplier:
description: Násobek, kladné číslo (i necelé). Hodnota 1 násobek zruší.
type: number
responses:
"200":
description: Aktualizovaný přehled dne
content:
application/json:
schema:
$ref: "../../schemas/_index.yml#/DayOverview"
"400":
description: Neplatná data
"401":
description: Neautentizovaný uživatel
"404":
description: Záznam neexistuje
+3
View File
@@ -20,6 +20,9 @@ post:
description: Chod. Bez něj se použije chod ze šablony, jinak oběd.
allOf:
- $ref: "../../schemas/_index.yml#/MealType"
multiplier:
description: Násobek porce, třeba 2 za dvě stejné sušenky. Bez něj 1.
type: number
responses:
"200":
description: Aktualizovaný přehled dne
+35
View File
@@ -0,0 +1,35 @@
post:
operationId: setMealMultiplier
summary: |
Nastaví násobek porce jídla přímo z přehledu dne, bez úpravy ostatních údajů.
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [id, date, multiplier]
properties:
id:
description: Identifikátor záznamu
type: string
date:
description: Datum záznamu (YYYY-MM-DD)
type: string
format: date
multiplier:
description: Násobek porce, kladné číslo (i necelé). Hodnota 1 násobek zruší.
type: number
responses:
"200":
description: Aktualizovaný přehled dne
content:
application/json:
schema:
$ref: "../../schemas/_index.yml#/DayOverview"
"400":
description: Neplatná data
"401":
description: Neautentizovaný uživatel
"404":
description: Záznam neexistuje