GET /ingredients
- Return all ingredientsGET /ingredients/:id
- Return an ingredient by idPOST /ingredients
- Create a new ingredient (the data must be sent in the payload)PUT /ingredients/:id
- Update an ingredient by id (the data must be sent in the payload)DELETE /ingredients/:id
- Remove an ingredient by idDELETE /ingredients/all
- Remove all ingredients
GET /recipes
- Return all ingredientsGET /recipes/:id
- Return an ingredient by idPOST /recipes
- Create a new ingredient (the data must be sent in the payload)PUT /recipes/:id
- Update an ingredient by id (the data must be sent in the payload)PUT /recipes/:id/:ingredientId
- Add an ingredient to the recipe (the quantity must be sent in the payload)DELETE /recipes/:id
- Remove a recipe by idDELETE /recipes/all
- Remove all recipes