fix: rozdílné jednotky u receptů
feat: vazby a trvání receptů
This commit is contained in:
1 parent
caffb6d8b4
commit
865c2c3b22
18 files changed
+952
-78
No files matched your search
@@ -1206,6 +1206,26 @@ MealTemplate:
|
||||
Hmotnost hotového jídla v gramech. Vařením se voda odpaří nebo nasákne,
|
||||
takže se liší od součtu surovin; bez ní se použije součet surovin.
|
||||
type: integer
|
||||
prepMinutes:
|
||||
description: Čas přípravy v minutách
|
||||
type: integer
|
||||
sideDishIds:
|
||||
description: Recepty, které se k tomuto jídlu dávají jako příloha
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
sideDishOfIds:
|
||||
description: |
|
||||
Recepty, ke kterým je toto jídlo přílohou — opačná strana `sideDishIds`
|
||||
jiných receptů. Při uložení se podle něj upraví ty recepty.
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
similarIds:
|
||||
description: Podobné recepty. Vazba je oboustranná, uvádí se u obou receptů.
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
|
||||
MealTemplateInput:
|
||||
description: |
|
||||
@@ -1240,6 +1260,35 @@ MealTemplateInput:
|
||||
type: integer
|
||||
cookedWeight:
|
||||
type: integer
|
||||
prepMinutes:
|
||||
type: integer
|
||||
sideDishIds:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
sideDishOfIds:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
similarIds:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
|
||||
IngredientUnit:
|
||||
description: |
|
||||
Jednotka suroviny receptu, když dává smysl víc než gramy (vejce, mléko).
|
||||
Bez jednotky je množstvím gramáž.
|
||||
type: string
|
||||
enum:
|
||||
- KS
|
||||
- ML
|
||||
- L
|
||||
- LZICE
|
||||
- LZICKA
|
||||
- HRNEK
|
||||
- BALENI
|
||||
- SPETKA
|
||||
|
||||
RecipeFlavor:
|
||||
description: Zda je recept slaný, nebo sladký
|
||||
@@ -1276,8 +1325,17 @@ RecipeIngredient:
|
||||
name:
|
||||
description: Název suroviny
|
||||
type: string
|
||||
amount:
|
||||
description: |
|
||||
Množství v jednotce `unit` (2 ks, 0,5 l). Bez jednotky se nepoužije,
|
||||
množstvím je gramáž.
|
||||
type: number
|
||||
unit:
|
||||
$ref: "#/IngredientUnit"
|
||||
weight:
|
||||
description: Použité množství v gramech
|
||||
description: |
|
||||
Použité množství v gramech. U suroviny v jiné jednotce je to přepočet
|
||||
na gramy, ze kterého se počítá energie a hmotnost hotového jídla.
|
||||
type: integer
|
||||
caloriesPer100g:
|
||||
description: Energie suroviny na 100 g v kcal
|
||||
|
||||
Reference in new issue
Block a user