The Recetas API provides read and association endpoints for the restaurant’s recipe catalogue. All routes are mounted under the base pathDocumentation 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.
/api/recetas and are CORS-enabled with no authentication required. Recipes are not created directly through this API — they are created implicitly when using the Menu API’s alimento-completo endpoints, which provision both the food item and its linked recipe in a single request.
Endpoints
List all recipes
GET /api/recetas
Returns every Receta record in the database, each with its full ingredient list and associated chef eagerly fetched.
200 OK
Get recipe by ID
GET /api/recetas/{id}
Retrieves a single Receta by its numeric primary key, including its full ingredient list and chef reference.
Path parameters
The unique numeric identifier of the recipe.
200 OK
404 Not Found when no recipe exists with the given id.
Get recipe by name
GET /api/recetas/nombre/{nombre}
Retrieves a single Receta by its exact nombreReceta value. This endpoint is used by the menu detail panel to load the full ingredient list for editing a food item.
Path parameters
The exact recipe name to look up, case-sensitive and URL-encoded. Must match the stored
nombreReceta value character for character.200 OK — a single Receta object (same shape as the by-ID response).
Returns 404 Not Found when no recipe matches the name exactly.
Get recipes by chef
GET /api/recetas/chef/{chefId}
Returns all recipes authored by the specified chef, each with its full ingredient list. The list is unordered; apply client-side sorting if needed.
Path parameters
The numeric primary key of the chef whose recipes should be returned.
200 OK — an array of Receta objects (empty array [] when the chef has no recipes).
List recipes by complexity
GET /api/recetas/complejidad
Returns all recipes sorted by ingredient count in descending order. Each entry is a RecetaComplejidadDTO — a concrete DTO class defined inside RecetaRepository — rather than the full Receta entity, making this endpoint suitable for dashboards and summary views.
Response fields
The unique identifier of the recipe.
The display name of the recipe.
The full name of the chef who owns the recipe.
Total number of ingredients linked to the recipe. Recipes are sorted by this value, highest first.
200 OK
Add ingredient to recipe
POST /api/recetas/{recetaId}/ingredientes/{ingredienteId}
Links an existing Ingrediente to an existing Receta by appending it to the recipe’s ingredient list. Both the recipe and the ingredient must already exist; this endpoint only creates the association.
Path parameters
The numeric primary key of the recipe to update.
The numeric primary key of the ingredient to add.
200 OK
400 Bad Request (recipe or ingredient not found)
Recipes are typically created via
POST /api/menu/{menuId}/alimento-completo rather than directly through this API. That endpoint accepts a complete AlimentoCompletoRequest payload — including recipe name, process description, chef cédula, and ingredient IDs — and creates the Alimento, Receta, and all associations in a single transaction.