This repository contains an API created with Django and Django REST Framework that provides data about ATP tennis players and their matches.
- Django==5.0.1
- DjangoRESTFramework==3.14.0
- Prettyconf==2.2.1
- IPython==8.20.0
-
Clone this repository:
git clone https://github.com/alherdom/ATP_API.git -
Install the dependencies using pip:
pip install -r requirements.txt -
Set up your environment variables. You must create an
.envfile with the variables. -
Run the database migrations:
python manage.py migrate -
Start the development server:
python manage.py runserver
/api/players/: Returns a list of all ATP tennis players./api/players/<id>/: Returns details of a specific player./api/matches/: Returns a list of all matches./api/matches/<id>/: Returns details of a specific match.
To get the list of players, make a GET request to /api/players/.
Contributions are welcome! If you find any bugs or have any suggestions for improvement, please open an issue or send a pull request.
This project is licensed under the MIT License.
