The stock endpoint gives a real-time snapshot of which menu items are currently marked as unavailable in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/EduCabrera-k/Menu_Hamburguesas/llms.txt
Use this file to discover all available pages before exploring further.
inventario_stock collection. The customer-facing menu polls this endpoint every ten seconds and uses the result to hide unavailable items and dim their cards. Only items that have been explicitly toggled via POST /toggle_disponibilidad appear in the response.
GET /api/stock
Returns a flat JSON object mapping each tracked menu item’s ID (as a string key) to its current availability (as a boolean value).Request parameters
None. This endpoint takes no query parameters, path parameters, or request body.Response
A JSON object where each key is a menu item ID (string) and each value is a boolean indicating whether the item is currently available.Availability of the menu item with the given ID.
true means available, false means unavailable.Only items that have been explicitly toggled via
/toggle_disponibilidad appear in this response. Items with no record in inventario_stock are treated as available (true) by the menu via Python’s dict.get with a default of True. They will not appear as keys in this object.Example
RequestHow the customer menu uses this endpoint
The customer menu polls/api/stock every 10 seconds using setInterval. When an item’s availability is false, its “Add to cart” button is hidden and the card is dimmed with reduced opacity. When availability is true (or the item is absent from the response), the button and full opacity are restored.