These endpoints expose theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/elzackarias/Hackaton3B-Reto1/llms.txt
Use this file to discover all available pages before exploring further.
InventoryEngine state via HTTP. The engine maintains a thread-safe in-memory store for all 7 shelf products, applying business logic (stock decrements, alert thresholds, event deduplication) before surfacing data through these routes. Every response reflects the most current state at request time.
GET /api/health
Returns the server’s operational status and how many seconds it has been running since startup.Always
"ok" when the server is running.Seconds elapsed since the server process started.
GET /api/inventory
Returns the completeInventoryState for all 7 products currently tracked on the shelf.
ISO 8601 timestamp of when the state snapshot was taken.
Array of
ProductStock objects, one per SKU. See fields below.ProductStock Object
Unique machine-readable identifier for the product (e.g.,
"nachos_naturasol").Human-readable product name (e.g.,
"Nachos Con Sal Naturasol 200gr").Physical shelf slot number (1–7).
Starting stock level. Always
8 unless overridden at engine initialization.Current stock units remaining on the shelf (0–
stock_initial).Alert threshold as a fraction of
stock_initial (default 0.20). An alert fires when stock_current ≤ stock_initial × stock_min_threshold.true when the product is at or below the alert threshold.ISO 8601 timestamp of the most recent event for this SKU, or
null if no events have occurred yet.GET /api/inventory/
Returns theProductStock for a single SKU. Returns HTTP 404 if the SKU does not exist.
The unique SKU identifier. Valid values are:
| sku_id | Product |
|---|---|
agua_burst | Agua Natural Burst 1500ml |
burst_energetica_roja | Bebida Energetica Red Burst 473ml |
burst_energy | Bebida Energetica Original Burst Energy 600ml |
nachos_naturasol | Nachos Con Sal Naturasol 200gr |
nebraska_mango | Bebida Mango-Durazno Nebraska 460ml |
sisi_cola | Refresco Cola Sin Azucar Sisi 355ml |
sun_paradise_naranja | Bebida Naranja Sun Paradise 900ml |
POST /api/inventory/reset
Resets all 7 products to their initial stock level (stock_current = 8), clears all recorded events, clears the HeatmapEngine data, and clears all NarrativeEngine messages. Useful for resetting state between demos or test runs.
Always
"ok" on success.Human-readable confirmation string.