ChickenKyiv / recipe-api-only

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
https://recipe-api-loopback.herokuapp.com/
39 stars 12 forks source link

Favourites, Meal Done, Modified model (Groceristar Part) #81

Open atherdon opened 7 years ago

atherdon commented 7 years ago

type: [ 'favorite', 'done', 'modified' ]

Model id, recipeId, userId, type

maybe we need to setup a cron job and each month we can calculate favorite

atherdon commented 7 years ago

// add favorites, meal done like array of recipe ids.

//favorite/list //favorite/add/ - return id //favorite/delete

//mealdone/add return id //mealdone/delete/:id //mealdone/list