feat: spin the wheel, objednavani scrape menu, historie cen
CI / Generate TypeScript types (push) Successful in 11s
CI / Server unit tests (push) Successful in 25s
CI / Build server (push) Successful in 29s
CI / Build client (push) Successful in 39s
CI / Playwright E2E tests (push) Successful in 1m52s
CI / Build and push Docker image (push) Successful in 51s
CI / Notify (push) Successful in 2s
CI / Generate TypeScript types (push) Successful in 11s
CI / Server unit tests (push) Successful in 25s
CI / Build server (push) Successful in 29s
CI / Build client (push) Successful in 39s
CI / Playwright E2E tests (push) Successful in 1m52s
CI / Build and push Docker image (push) Successful in 51s
CI / Notify (push) Successful in 2s
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
post:
|
||||
operationId: refreshStoreMenu
|
||||
summary: Ručně znovu stáhne nabídku obchodu od dané služby (vyžaduje admin heslo). Zruší případné zablokování automatického stahování.
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- name
|
||||
- provider
|
||||
- heslo
|
||||
properties:
|
||||
name:
|
||||
description: Název obchodu
|
||||
type: string
|
||||
provider:
|
||||
$ref: "../../schemas/_index.yml#/StoreMenuProvider"
|
||||
heslo:
|
||||
description: Admin heslo (ADMIN_PASSWORD)
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: Aktuální stav stahování nabídek obchodu (i při neúspěchu — chyba je v lastError)
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../schemas/_index.yml#/StoreScrapeInfo"
|
||||
@@ -0,0 +1,19 @@
|
||||
get:
|
||||
operationId: getStoreMenu
|
||||
summary: Vrátí nabídku obchodu — staženou z Bolt Food/Wolt (hlavní jídla označena isMain), případně jídla z historie objednávek.
|
||||
parameters:
|
||||
- in: query
|
||||
name: name
|
||||
required: true
|
||||
description: Název obchodu ze seznamu povolených
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: Nabídka obchodu
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../schemas/_index.yml#/StoreMenu"
|
||||
"404":
|
||||
description: Obchod nebyl nalezen
|
||||
@@ -0,0 +1,19 @@
|
||||
get:
|
||||
operationId: getStoreMenuHistory
|
||||
summary: Vrátí historii cen nabídky obchodu (verze z jednotlivých stažení z Bolt Food/Wolt).
|
||||
parameters:
|
||||
- in: query
|
||||
name: name
|
||||
required: true
|
||||
description: Název obchodu
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: Historie cen
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../schemas/_index.yml#/StorePriceHistory"
|
||||
"404":
|
||||
description: Obchod nebyl nalezen
|
||||
@@ -0,0 +1,12 @@
|
||||
get:
|
||||
operationId: getStoreMenuStatus
|
||||
summary: Vrátí stav stahování nabídek (Bolt Food/Wolt) pro všechny obchody.
|
||||
responses:
|
||||
"200":
|
||||
description: Stav stahování nabídek
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "../../schemas/_index.yml#/StoreScrapeInfo"
|
||||
Reference in New Issue
Block a user