This directory contains the API for the fitness client. It is built using the flask python library.
The API can also be hosted. For this project, this API was hosted on heroku.
Sample http get request - http://127.0.0.1:5000/v1/resources/nutrition/bmi?name=Underweight
Query Parameters
- Underweight
- Overweight
- Normal
You can find more information by examining the app.py and create_fitnessdatabase.py files.
The app.py
file contains the code for the http requests and the create_fitnessdatabase.py
file contains the code that creates the necessary tables for the API.