API REST desarrollada por DOSW Company para la gestión de recetas del programa Máster Chef Celebrity.
Esta API permite consultar, registrar, actualizar y eliminar recetas creadas por participantes, jueces (chefs) y televidentes, además de filtrar por temporada o por ingredientes específicos.
git clone https://github.com/<tu-usuario>/MasterChefAPI.git
cd MasterChefAPImvn clean compile
mvn spring-boot:runhttps://mastercheft2-a8afeadpdvbxbshj.canadacentral-01.azurewebsites.net/swagger-ui/index.html
Request:
"id": "RE001",
"title": "Filet Mignon",
"ingridients": [
"Beef",
"Butter",
"Salt",
"Pepper"
],
"steps": [
"Season the meat with salt and pepper.",
"Heat butter in a pan.",
"Cook the meat for 3 minutes per side.",
],
"season": 1,
"authorChef": {
"id": "CH001",
"name": "Juan Perez",
"role": "CONTESTANT"
}
}
Response:
{
"id": "RE001",
"title": "Filet Mignon",
"ingridients": [
"400g of beef tenderloin",
"15g of butter",
"Salt",
"Pepper"
],
"steps": [
"Season the meat with salt and pepper.",
"Heat butter in a pan.",
"Cook the meat for 3 minutes per side.",
],
"season": 1,
"authorChef": {
"id": "CH001",
"name": "Juan Perez",
"role": "CONTESTANT"
}
}Request:
{
"id": "RE001",
"title": "Filet Mignon Deluxe",
"ingridients": [
"Beef chata",
"Butter",
"Salt",
"Pepper"
],
"steps": [
"Marinate the meat and put salt, and pepper.",
"Cook in butter for 400 minutes per side.",
"Serve with a sauce of your choice."
],
"season": 2,
"authorChef": {
"id": "CH001",
"name": "Juan Perez",
"role": "CONTESTANT"
}
}
Response:
{
"id": "RE001",
"title": "Filet Mignon Deluxe",
"ingridients": [
"400g of beef chata",
"20g of butter",
"Salt",
"Pepper"
],
"steps": [
"Marinate the meat and put salt, and pepper.",
"Cook in butter for 400 minutes per side.",
"Serve with a sauce of your choice."
],
"season": 2,
"authorChef": {
"id": "CH001",
"name": "Juan Perez",
"role": "CONTESTANT"
}
}Request:
DELETE /recipes/RE001Response:
204 No ContentRequest:
GET /recipes
Response:
[
{
"id": "RE001",
"title": "Filet Mignon",
"ingridients": ["Beef", "Butter", "Salt"],
"steps": ["Season", "Cook", "Serve"],
"season": 1,
"authorChef": {
"id": "CH001",
"name": "Juan Perez",
"role": "CONTESTANT"
}
}
]Request:
GET /recipes/RE001
Response:
[
{
"id": "RE001",
"title": "Filet Mignon",
"ingridients": ["Beef", "Butter", "Salt"],
"steps": ["Season", "Cook", "Serve"],
"season": 1,
"authorChef": {
"id": "CH001",
"name": "Juan Perez",
"role": "CONTESTANT"
}
}
]Request:
GET /recipes/contestants
Response:
[
{
"id": "RE001",
"title": "Filet Mignon",
"ingridients": ["Beef", "Butter", "Salt"],
"steps": ["Season", "Cook", "Serve"],
"season": 1,
"authorChef": {
"id": "CH001",
"name": "Juan Perez",
"role": "CONTESTANT"
}
}
]Request:
GET /recipes/season/1
Response:
[
{
"id": "RE001",
"title": "Filet Mignon",
"season": 1,
}
}
]Request:
GET /recipes/ingridient/Butter
Response:
[
{
"id": "RE001",
"title": "Filet Mignon",
"ingridients": ["Beef", "Butter", "Salt"],
"steps": ["Season", "Cook", "Serve"],
"authorChef": {
"id": "CH001",
"name": "Juan Perez",
"role": "CONTESTANT"
}
}
]

