feat: předělání historie a profilu
This commit is contained in:
1 parent
9e72f431a1
commit
8fa7f601f2
97 files changed
+7502
-1034
No files matched your search
@@ -0,0 +1,28 @@
|
||||
post:
|
||||
operationId: saveWeight
|
||||
summary: Zapíše vážení k zvolenému dni.
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required: [date]
|
||||
properties:
|
||||
date:
|
||||
type: string
|
||||
format: date
|
||||
weightGrams:
|
||||
description: Hmotnost v gramech. Bez hodnoty (nebo 0) se vážení dne smaže.
|
||||
type: integer
|
||||
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
|
||||
@@ -0,0 +1,14 @@
|
||||
get:
|
||||
operationId: getWeights
|
||||
summary: Vrátí všechna vážení přihlášeného uživatele seřazená podle data.
|
||||
responses:
|
||||
"200":
|
||||
description: Vážení od nejstaršího
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "../../schemas/_index.yml#/WeightEntry"
|
||||
"401":
|
||||
description: Neautentizovaný uživatel
|
||||
Reference in new issue
Block a user