Giter VIP home page Giter VIP logo

binarydemo's Introduction

Aircraft Queue Management System

Problem Statement -> View

Postman Collection -> View

Database Script-> View

Server Details

In order to define hostname and port, following properties are required (Port can be changed)

server.servlet.contextPath=/binary
server.port=9091

Database Details

spring.datasource.url=jdbc:mysql://localhost:8889/binary
spring.datasource.username=root
spring.datasource.password=root
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect

API Endpoints

  • Add to Queue:

    To add an AC to queue, call request with following parameters in the body based on:

    enqueueType = E (Emergency), V (VIP), P (Passenger), C (Cargo)

    enqueueSize = L (Large), S (Small)

    position = Position in Queue

    Request PUT http://localhost:9091/binary/updatequeue

    Body

    {
        "enqueueType": "E",
        "enqueueSize": "S",
        "position" : 9
    }
    
  • Remove from Queue:

    To view ACs in Queue, call below request without any parameter

    Request PUT http://localhost:9091/binary/dequeue

    To dequeue ACs based on precedence, call request with number of ACs (number=1,2,..) to be dequeued as path parameter

    Request PUT http://localhost:9091/binary/dequeue/{number}

  • State of Queue:

    To view state of queue, call request based on following query parameters:

    aircraftId (Id of AC in Queue)

    queueType = E (Emergency), V (VIP), P (Passenger), C (Cargo)

    queueSize = L (Large), S (Small)

    Request GET http://localhost:9091/binary/list?queueType=V&queueSize=S&aircraftId=1

binarydemo's People

Contributors

vinayverghese avatar dependabot[bot] 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.