Django Rest Framework project for managing Airport Service. The project implements management of flights, planes, and crews. And the ability to create orders has also been implemented.
Python3 & Postgres must be already installed
git clone https://github.com/OlegatorLE/airport-api-service.git
cd airport-api-service
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate in Windows
pip install -r requirements.txt
create .env file by .env.sample
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
- create user:
- api/user/register
- get access token:
- api/user/token
- verify access token:
- api/user/token/verify
- refresh token:
- api/user/token/refresh
- manage user:
- api/user/me
- Different accesses to APIRoot endpoint for anonymous and authorized users
- Admin panel /admin/
- Documentation at /api/doc/swagger
- Creating orders by auth users
- Creating airports by admins
- Creating airplanes with some type by admins
- Creating routes from source to destination by admins
- Adding flights with some routes and airplanes by admins
- Filtering airports by name, city or country
- Pagination airports and orders