API server for recipe based projects. If you want to have an app or website with recipes, but don't want to spend a lot of time - this can be a good choice
/account/login
/account/logout
/account/update
/account/changePassword
/account/delete
/account/language
/account/signup
// todo
/account/verify
/account/recover
/account/recover/password
/account/changeEmail
Note: Upload images are not supported right now. If you want to display images, you must upload them to storage, copy public url and save it on database. Use this reference for adding such a functionality: https://github.com/optis/loopback-rest-api#storage
Note: Working only with unstable node version - 9.4.0 - be careful
Great Loopback REST API tutorial: https://github.com/optis/loopback-rest-api
Check GettingStarted.md file Check GettingStarted.md file
See GETTINGSTARTED.md to get started.
See Free Menu Release Routes with Samples to get started.
See Search filters.md to get started.
See CONTRIBUTING.md for contribution guidelines.
@TODO change recipe title field to name field and test it at whole project @TODO this is not finished. Just steal from other place
Method: POST Path: /api/meal/ Input: JSON with properties userId and recipeId
Method: DELETE Path: /api/meal/"mealId" Input: mealId through the url
Method: PUT Path: /api/meal/"mealId" Input: mealId through the url
Method: PUT Path: /api/meal/ Input: JSON with property haveIngridient Response: 200 and updated meal object
Method: GET Path: /api/user/"userId" Input: userId through the url Response: 200 and user Object
Method: POST Path: /api/user/ Input: JSON with property username and password Response: 200 and Object with token, username and userId
Method: POST Path: /api/user/authenticate Input: JSON with property username and password Response: 200 and Object with properties token, username and userId
Method: GET Path: /api/recipe/ Input: nothing Response: 200 and array of all recipes in our database
Method: GET Path: /api/recipe/"query" Input: query string for a certain dish Response: 200 and array of all recipes for the query
Method: POST Path: /api/recipe/ Input: nothing Response: 200 and the created recipe object
Sections
##Calendar ##Weekly menu ##Auth ##Recipe ##Grocery list ##Expenses ##Nutrition ##Food tracking or Food logging ##Search ##Recipe ##Tips
Other api connection
FLOW.md Weekly menus - recipes - remove recipe - change servings - changes at GL
Main Weekly Menu(created and stored by chief) Cloned to user section if user want to add some changes When user remove recipe, change servings, rearrange recipes order, replace recipe to another - Menu copied to user collection and weekly menu id updated from Main WM to Cloned WM
GL
create functionality when user uncheck ingredient from GL - so we need to remove it from Purchased list too.