This API allows for the retrieval of berries from the pokeapi and calculation of some basic statistics. And the showcase of a histogram graph
- Clone the repository:
git clone https://github.com/agent3dev/allBerryStats.git
Create a virtual environment:
python -m venv venv
Activate the virtual environment:
For Windows:
.\venv\Scripts\activate
For macOS and Linux:
source venv/bin/activate
Install the required dependencies:
pip install -r requirements.txt
To launch the api execute the command:
./allBerryStats/venv/bin/python ./allBerryStats/main.py
Adjusting the routes if necessary.
The following endpoints are supported:
GET /allBerryStats
GET /histogram
To launch the API tests execute the command:
./allBerryStats/venv/bin/pytest ./allBerryStats/test_berries.py
Adjusting the routes if necessary.
You can check out the API live on Python Anywhere:
http://edgarrivera.pythonanywhere.com/
http://edgarrivera.pythonanywhere.com/allBerryStats
http://edgarrivera.pythonanywhere.com/histogram