The REST API is written in Django for FIFA 21
Below: Screenshot from the browsable API
- Django Rest Framework: Django REST framework is a powerful and flexible toolkit for building Web APIs.
-
If you want to run the REST API, first ensure you have python globally installed in your computer. If not, you can get python here.
-
Then, clone the repo to your PC
$ git clone https://github.com/othmbela/fifa-21-api.git
-
- Cd into your the cloned repository as such:
$ cd fifa-21-api
- Create and fire up your virtual environment:
$ python3 -m venv venv $ source venv/bin/activate
- Install the dependencies needed to run the app:
$ pip install -r requirements.txt
- Make those migrations work
$ python manage.py makemigrations $ python manage.py migrate
- Cd into your the cloned repository as such:
-
Fire up the server using this one simple command:
$ python manage.py runserver
You can now access the documentation on your browser by using
http://localhost:8000
├── .env.example
├── .gitignore
├── docker-compose.yml
├── Dockerfile
├── manage.py
├── requirements.txt
├── assets
│ └── images
├── settings
│ └── settings.py
├── utils
│ ├── fields.py
│ └── pagination.py
├── api
│ ├── __init__.py
│ ├── asgi.py
│ ├── urls.py
│ └── wsgi.py
└── apps
├── __init__.py
├── player
│ ├── admin.py
│ ├── apps.py
│ ├── models.py
│ ├── serializers.py
│ ├── tests.py
│ ├── urls.py
│ └── views.py
└── team
├── admin.py
├── apps.py
├── models.py
├── serializers.py
├── tests.py
├── urls.py
└── views.py
Othmane Belarbi