/Airport-API-Service

System for tracking flights across whole globe

Primary LanguagePython

Airport-API-Service

Airport API service - system for tracking flights from airports across the whole globe.

Supports:

  • JWT Authentication
  • Swagger Documentation
  • PostgreSQL
  • Docker

Database Table

Alt Text

Admin possibilities:

  • Create/Update/Delete airplane crew positions
  • Create/Update/Delete crew, assign crew position
  • Create/Update/Delete airplane types
  • Create/Update/Delete airplanes with assigned crew
  • Create/Update/Delete airports
  • Create/Update/Delete routes with source and destination airports
  • Create/Update/Delete flight with certain routes and airplane

User possibilities:

  • Create/Update/Delete ticket with order for certain flight

Installation

  1. Clone link from GitHub repository airport-API
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
  1. Create .env file and update fields like in .env.sample

  2. Build docker container

docker build -t airport_api . 
  1. Run Docker container
docker compose up
  1. Create superuser
docker exec -it <container_name> bash

Token Obtain Page

Alt Text Alt Text

Api Root

Alt Text

Crew Position Create

Alt Text

Crew Create

Alt Text

Airport Create

Alt Text

Airplane Type Create

Alt Text

Airplane Create

Alt Text

Route Create

Alt Text

Create Flight

Alt Text

Create Ticket

Alt Text

Create Order

Alt Text