Two GET endpoints serve menu data at different levels of detail. The first returns the rawDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/NicolasMPP/restorante-springboot/llms.txt
Use this file to discover all available pages before exploring further.
Menu entity — including the assigned manager and the list of associated Alimento objects. The second returns a flat AlimentoDetalleDTO projection per food item that enriches each record with recipe metadata, chef information, and an ingredient count, sorted alphabetically by food name. A third endpoint lets you fetch a single food item with its full Receta association eager-loaded, which is useful for pre-populating edit forms.
GET /api/menu/{id}
Retrieves a completeMenu entity by its primary key, including the eager-loaded Gerente and the list of associated Alimento records.
Path parameters
The primary key of the menu to retrieve.
Responses
| Status | Description |
|---|---|
200 OK | Returns the full Menu object as JSON. |
404 Not Found | No menu with the given ID exists. |
Example request
Example response
GET /api/menu/{id}/alimentos
Returns a list ofAlimentoDetalleDTO objects for every food item linked to the menu. Results are sorted alphabetically by alimentoNombre. This endpoint is intended for displaying enriched food listings and for pre-populating edit UIs.
Path parameters
The primary key of the menu whose food items you want to list.
Response fields
Each object in the returned array contains the following fields.Primary key of the food item in the
alimentos table.Display name of the food item.
Price of the food item as a
BigDecimal (two decimal places).Derived food category. One of
PLATO_FUERTE, POSTRE, BEBIDA, ADICIONAL, or GENERAL. Resolved from the JPA subclass name at runtime.Primary key of the associated
Receta. null when the food item has no recipe.Name of the recipe. Returns
"Sin receta" when no recipe is linked.Preparation process description from the recipe. Returns
"No requiere preparación" when no recipe is linked.Number of
Ingrediente records linked to the recipe. Returns 0 when no recipe is linked.Primary key of the chef who owns the recipe.
null when no recipe or no chef is assigned.Full name of the chef. Returns
"N/A" when no chef is assigned.Responses
| Status | Description |
|---|---|
200 OK | Returns a JSON array of AlimentoDetalleDTO objects, sorted A–Z by food name. |
Example request
Example response
GET /api/menu/{menuId}/alimentos/{alimentoId}
Retrieves a singleAlimento entity from a menu with its associated Receta eager-loaded. This is the recommended endpoint for pre-populating food-item edit forms, as it provides the full entity graph rather than the summary DTO.
Path parameters
The primary key of the menu that contains the food item.
The primary key of the food item to retrieve.
Responses
| Status | Description |
|---|---|
200 OK | Returns the full Alimento entity (with Receta) as JSON. |
404 Not Found | The food item does not exist in the specified menu. |