jhonatasmatos / daily-diet-api

Challenge proposed by rocketseat for ignite course. An API to control a daily diet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Daily Diet API

Challenge proposed by rocketseat for ignite course.

An API to control a daily diet.

Requirements

✅ Should be possible to create an user.

✅ Should be possible to identify the user among the requests.

✅ Should be possible to record a meal made, with the following information:

Meals must be related to a user.
  • Name
  • Description
  • Date and Hour
  • On or off the diet

✅ Should be possible to edit a meal, being able to change all the above data.

✅ Should be possible delete a meal.

✅ Should be possible to list all meals of a user.

✅ Should be possible to visualize a single meal.

✅ Should be possible to retrieve a user's metrics.

  • Total number of registered meals
  • Total amount of meals within the diet
  • Total number of meals outside the diet
  • Better sequence of meals within the diet

✅ User can only view, edit and delete meals which he created.

About

Challenge proposed by rocketseat for ignite course. An API to control a daily diet.


Languages

Language:TypeScript 100.0%