feat: lepší generování mock dat při vývoji
CI / Generate TypeScript types (push) Successful in 11s
CI / Server unit tests (push) Successful in 25s
CI / Build server (push) Successful in 28s
CI / Build client (push) Successful in 41s
CI / Playwright E2E tests (push) Successful in 1m45s
CI / Build and push Docker image (push) Successful in 46s
CI / Notify (push) Successful in 2s

This commit is contained in:
2026-08-25 10:31:32 +02:00
parent 9027de5f8b
commit 93242b7c7e
7 changed files with 221 additions and 98 deletions
+8 -2
View File
@@ -1,6 +1,6 @@
post:
operationId: clearMockData
summary: Smazání všech voleb pro daný den (pouze DEV režim)
summary: Smazání všech voleb pro daný den nebo celý týden (pouze DEV režim)
requestBody:
required: false
content:
@@ -18,6 +18,12 @@ post:
success:
type: boolean
dayIndex:
type: integer
description: Index dne, pro který byla data smazána (jen při mazání jednoho dne)
$ref: "../../schemas/_index.yml#/DayIndex"
days:
description: Seznam dnů, pro které byla data smazána (jen při mazání celého týdne)
type: array
items:
$ref: "../../schemas/_index.yml#/MockDataDayResult"
"403":
description: Endpoint není dostupný v tomto režimu
+8 -1
View File
@@ -18,8 +18,15 @@ post:
success:
type: boolean
count:
description: Celkový počet vygenerovaných záznamů
type: integer
dayIndex:
type: integer
description: Index dne, pro který byla data vygenerována (jen při generování pro jeden den)
$ref: "../../schemas/_index.yml#/DayIndex"
days:
description: Rozpis vygenerovaných záznamů po dnech (jen při generování pro celý týden)
type: array
items:
$ref: "../../schemas/_index.yml#/MockDataDayResult"
"403":
description: Endpoint není dostupný v tomto režimu