Code Monkey home page Code Monkey logo

airport-api's Introduction

Airport API✈️

Django REST framework

The Airport API Service is a versatile backend solution for managing airport-related data and facilitating flight bookings. It offers CRUD (Create, Read, Update, Delete) operations for cities, routes, airplanes, and flights for administrators while providing the opportunity for everyone to book seats for flights through orders.

⚙️ Installation

Python3 must be already installed. Also install PostgreSQL and create db.

git clone https://github.com/innyshka/airport-API.git
cd airport_api
python3 -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`
pip install -r requirements.txt
#create .env file based on env.sample
python manage.py migrate
python manage.py runserver #starts Django server

🐳 Run with Docker

Docker should be installed.

docker-compose up --build

✅ Accessing the Application

You can now access the API by opening your web browser and navigating to http://localhost:8000.

🔏 Test admin user

email: [email protected]
password: admin
  • create user api/user/register
  • get access token api/user/token
  • refresh token api/user/token/refresh
  • verify token api/user/token/verify
  • your profile api/user/me

📍 Available urls

  • api/airport/airplane_types/
  • api/airport/positions/
  • api/airport/crews/
  • api/airport/airplanes/
  • api/airport/countries/
  • api/airport/cities/
  • api/airport/airports/
  • api/airport/routes/
  • api/airport/flights/
  • api/airport/orders/

📃 Documentation

  • api/doc/swagger/
  • api/doc/redoc/
  • api/schema

✨ Features

  • JWT Authenticated
  • Documentation is located in /api/doc/swagger/
  • Managing orders and tickets
  • CRUD for all entity except User
  • filtering with django_filters and query_params
  • you can upload image for airplane, crew and airport in api/airport//upload-image

🗃️ DB structure

DB structure

airport-api's People

Contributors

innyshka avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.