feat: generování mock dat ve vývoji pro objednávky
CI / Generate TypeScript types (push) Successful in 11s
CI / Server unit tests (push) Successful in 27s
CI / Build server (push) Successful in 29s
CI / Build client (push) Successful in 42s
CI / Playwright E2E tests (push) Successful in 1m43s
CI / Build and push Docker image (push) Successful in 46s
CI / Notify (push) Successful in 2s
CI / Generate TypeScript types (push) Successful in 11s
CI / Server unit tests (push) Successful in 27s
CI / Build server (push) Successful in 29s
CI / Build client (push) Successful in 42s
CI / Playwright E2E tests (push) Successful in 1m43s
CI / Build and push Docker image (push) Successful in 46s
CI / Notify (push) Successful in 2s
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
post:
|
||||
operationId: generateMockOrders
|
||||
summary: Vygenerování mock dat pro sekci Objednání – vždy jen pro aktuální den (pouze DEV režim)
|
||||
requestBody:
|
||||
required: false
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../schemas/_index.yml#/GenerateMockOrdersRequest"
|
||||
responses:
|
||||
"200":
|
||||
description: Mock data pro objednávání byla úspěšně vygenerována
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
success:
|
||||
type: boolean
|
||||
count:
|
||||
description: Celkový počet doplněných osob
|
||||
type: integer
|
||||
groups:
|
||||
description: Rozpis doplněných osob po skupinách
|
||||
type: array
|
||||
items:
|
||||
$ref: "../../schemas/_index.yml#/MockOrdersGroupResult"
|
||||
"400":
|
||||
description: Chybný požadavek (např. není nadefinován žádný obchod)
|
||||
"403":
|
||||
description: Endpoint není dostupný v tomto režimu
|
||||
Reference in New Issue
Block a user