SaarthakMaini / Calories_API

The project aims to build an API in Python which deals with the calculation of Calorie intake of a person.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calories_API

The project aims to build an API in Python which deals with the calculation of Calorie intake of a person.

Deliverables

  • API Users must be able to create an account and log in.
  • All API calls must be authenticated.
  • Implement at least three roles with different permission levels: a regular user would only be able to CRUD on their owned records, a user manager would be able to CRUD only users, and an admin would be able to CRUD all records and users.
  • Each entry has a date, time, text, and number of calories.
  • If the number of calories is not provided, the API should connect to a Calories API provider (for example, https://www.nutritionix.com) and try to get the number of calories for the entered meal.
  • User setting – Expected number of calories per day.
  • Each entry should have an extra boolean field set to true if the total for that day is less than the expected number of calories per day, otherwise should be false.
  • The API must be able to return data in the JSON format.
  • The API should provide filter capabilities for all endpoints that return a list of elements, as well should be able to support pagination.
  • Write unit and e2e tests.

About

The project aims to build an API in Python which deals with the calculation of Calorie intake of a person.

License:MIT License


Languages

Language:Python 100.0%