A Django REST Framework based project for Soccer API app. The API includes features such as user registration, login, player transfer, player buy and more.
Following instructions will help you on how to setup and use this project on your local machine.
Clone the repository:
git clone https://github.com/i-huzaifa-arshad/Soccer-Game-API
Navigate to the project directory:
cd Soccer-Game-API
python3 -m venv env
source env/bin/activate
py -m venv env
.\env\Scripts\activate
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
Open http://localhost:8000/
or http://127.0.0.1:8000/
when the server is running to see the Swagger API documentation.
signup
and login
endpoints do not need authentication from user.Token
is required to use the endpoints.Authorize
button on homepage of Swagger documentation.Token #token
and click Authorize
, where the #token
can be something like 8544caa04d945327fc44417d17038700f2daa90c
.