Make it easier for yourself to store your favorite recipes, plan what you will cook and what you need to buy. With this Recipe planner you can create and manage recipes. Browse for new recipes. Add recipes in your planner and populate the ingredients from a recipe immediately to your shopping list.
Built with dotnet web api. C#, Entity Framework, SQL, Azure.
Base Url https://foodplannerapi20240204190546.azurewebsites.net/ (currently not live)
POST url/register
JSON Body
{
"email": "",
"password": ""
}
POST /login
JSON Body
{
"email": "",
"password": ""
}
POST /refresh
JSON BODY
{
"refreshToken": ""
}
In the header add the key Authorisation together with the value; Bearer your-token.
HEADER
key: Authorization
value: Bearer your-token
POST /logout
GET url/api/recipes
Get url/api/recipes?maxCookTime=30
GET url/api/recipes/id
POST /api/recipes
JSON BODY
{
"id": 0,
"name": "string",
"description": "string",
"cookTime": 0,
"ingredients": [
{
"ingredient": "string",
"amount": "string"
}
],
"steps": [
"string"
]
}
PUT /api/recipes
JSON BODY
{
"id": 0,
"name": "string",
"description": "string",
"cookTime": 0,
"ingredients": [
{
"ingredient": "string",
"amount": "string"
}
],
"steps": [
"string"
]
}
DELETE /api/recipes/id (Authorization required)
GET url/api/recipes/get-recipes-by-user (Authorization required)
GET /api/recipeschedules
GET /api/recipeschedules/id
POST /api/recipeschedules?recipeid=id&date=date-time
DELETE /api/recipe-schedules/id
GET /api/shoppingitems
GET /api/shoppingitems/id
POST /api/shoppingitems?item=eggs&quantaty=2
PUT /api/shoppingsitems
JSON BODY
{
"id": 0,
"item": "string",
"quantity": "string",
"userID": "string"
}
DELETE /api/shoppingitems/id
POST /api/addingredients-from-recipe-to-shoppinglist?recipeId=id