Giter VIP home page Giter VIP logo

vehicle_park's Introduction

Vehicle Parking System

This is a sample parking system which handles vehicle entry and exit flows

#Users

User -> User Name : user , Password : password
Admin -> User Name : admin , Password : admin

Parking System API calls

  1. Create Parking Slot : This API creates parking slot with the given name
    Method Type : POST
    Url : http://localhost:8080/parking/slot
    Header : Content-Type : application/json
    ALLOW FOR ADMIN ROLE Body :
{
  "name"   : "slot name"
  "isFree" : true
}

Result :

{
"msg": "Successfully created parking slot",
"dateTime": "2022-11-11T04:54:22.258+0000"
}
  1. Get Parking slots : Returns the json representation of the parking slots.
    Method Type : GET
    Url : http://localhost:8080/parking/slot
    Result :
{
  "id"     : 
  "name"   : "slot name"
  "isFree" : true
}
  1. **Create Vehicle Park ** : Enters the vehicle information in the system.
    Method Type : POST
    Url : http://localhost:8080/vehicle/park-in-slot
    Header : Content-Type : application/json
    Body :
{
  "number" : "ABB 8800",
  "type" : 0
  "slotId" : 1
}

Result :

{
"msg": "Vehicle parking entry created",
"dateTime": "2022-11-11T04:54:22.258+0000"
}
  1. **Create Vehicle Exit ** : Enters the vehicle exit time and free's the occupied slot and makes entry in ParkingEntry table
    Method Type : POST
    Url : http://localhost:8080/vehicle/park-out-slot
    Header : Content-Type : application/json
    Body :
{
  "id" : 52
}

Result :

{
"msg": "Vehicle exit from parking slot",
"dateTime": "2022-11-11T04:54:22.258+0000"
}
  1. Get Parking Entries : Returns all the entries in the system.
    Method Type : GET
    Url : http://localhost:8080/parking/entries
    Result :
{

  "id" : 1,
  "slotName" : "slot name",
  "vehicleNumber" : "ABB 8800",
  "fare" : 50,
  "inTime" : "2022-11-11T04:54:22.258+0000",
  "outTime" : "2022-11-11T04:54:22.258+0000"

}

vehicle_park's People

Contributors

tharangadinesh 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.