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
+20
View File
@@ -0,0 +1,20 @@
post:
operationId: addActivity
summary: Přidá pohybovou aktivitu do zvoleného dne.
requestBody:
required: true
content:
application/json:
schema:
$ref: "../../schemas/_index.yml#/ActivityInput"
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
+29
View File
@@ -0,0 +1,29 @@
post:
operationId: deleteActivity
summary: Smaže aktivitu.
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [id, date]
properties:
id:
type: string
date:
type: string
format: date
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
+28
View File
@@ -0,0 +1,28 @@
post:
operationId: updateActivity
summary: Upraví existující aktivitu.
requestBody:
required: true
content:
application/json:
schema:
allOf:
- type: object
required: [id]
properties:
id:
type: string
- $ref: "../../schemas/_index.yml#/ActivityInput"
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