- It should be possible to create a user, with the following information:
name
,image
,email
,create date
. - It should be possible to identify the user between requests:
session_id
- It should be possible to register a meal made, with the following information:
name
,description
,create date and time
,is it on or off the diet
. The meals should be associated to a user. - It should be possible to edit a meal, editing all information above, apart from the user and created date.
- It should be possible to delete a meal.
- It should be possible to list all user meal.
- It should be possible to see a specific meal.
- It should be possible to get user metrics, such as:
- Total of meals created
- Total of meals created that were on the diet
- Total of meals created that were off the diet
- Best streak days on the diet
- The user can only see, edit and delete the meals that their created
lcnunes09 / ignite-challenge-2-node-js Goto Github PK
View Code? Open in Web Editor NEWDaily Diet API - Ignite Challenge 2 Node.js