feat: založení základní stránky příjem/výdej + import a statistiky

This commit is contained in:
Ondřej Anděl
2026-09-07 14:58:49 +02:00
commit a5711f3e1e
98 changed files with 15505 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
post:
operationId: saveBasalCalories
summary: Uloží klidový výdej (bazální metabolismus) přihlášeného uživatele.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
basalCalories:
description: Klidový výdej v kcal za den. Null nebo 0 ho odstraní.
type: integer
nullable: true
responses:
"200":
description: Aktualizované nastavení
content:
application/json:
schema:
$ref: "../../schemas/_index.yml#/UserSettings"
"400":
description: Neplatná data
"401":
description: Neautentizovaný uživatel
+41
View File
@@ -0,0 +1,41 @@
get:
operationId: getSettings
summary: Vrátí nastavení přihlášeného uživatele.
responses:
"200":
description: Nastavení uživatele
content:
application/json:
schema:
$ref: "../../schemas/_index.yml#/UserSettings"
"401":
description: Neautentizovaný uživatel
post:
operationId: saveSourceRate
summary: Uloží nebo smaže cenu za 100 g u jednoho zdroje.
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [source]
properties:
source:
description: Název zdroje (podniku)
type: string
pricePer100g:
description: Cena za 100 g v haléřích. Null nebo 0 sazbu odstraní.
type: integer
nullable: true
responses:
"200":
description: Aktualizované nastavení
content:
application/json:
schema:
$ref: "../../schemas/_index.yml#/UserSettings"
"400":
description: Neplatná data
"401":
description: Neautentizovaný uživatel