Clarkson's Logo

CS350 Project

Backend documentation

URL to the api: api.cs350.melvinauvray.com/api/v1 (version can change)

Ingredients


GET /ingredients

Description: Retrieve the list of all existing ingredients on the app.

Body parameters:

Answer:

POST /ingredients

Description: Create a new ingredient if it doesn't exist. The id of an ingredient category can be given, if it is, the newly created ingredient is attached to this category. If the ingredient was already created, the existing ingredient is atached to the category.

Body parameters:

Answer:

DELETE /ingredients/{ingredient_id}

Description: remove an ingredient from a category.

Body parameters:

Answer:

Ingredient Categories


GET /ingredientcategories

Description: Retrieve the list of ingredient categories of a specific user. The list of ingredients is also attached inside each category.

Body parameters:

Answer:

POST /ingredientcategories

Description: Create a new ingredient category.

Body parameters:

Answer:

DELETE /ingredientcategories/{category_id}

Description: Delete an ingredient category.

Body parameters:

Answer:

Utensils / Utensils categories


Works the same as the ingredients' endpoints.