GithubHelp home page GithubHelp logo

ticketparkingarage's Introduction

Garage Project

SpringBoot Rest Example

Scenario

  • In this problem, you have a garage that can be parked up to 10 slots (you can consider each slot is 1 unit range) at any given point in time. You should create an automated ticketing system that allows your customers to use your garage without human intervention. When a car enters your garage, you give a unique ticket issued to the driver. The ticket issuing process includes us documenting the plate and the colour of the car and allocating an available slots to the car before actually handing over a ticket to the driver. When a vehicle holds number of slots with its own width, you have to leave 1 unit slot to next one. The customer should be allocated slot(s) which is nearest to the entry. At the exit the customer returns the ticket which then marks slot(s) they were using as being available. Create a spring boot project and then, publish a rest controller. Your controller methods include park, leave and status.

Note:

  • Car holds 1 slot
  • Jeep holds 2 slots
  • Truck holds 4 slot

###Sample Input 1

  1. park 34-SO-1988 Black Car

  2. park 34-BO-1987 Red Truck

  3. park 34-VO-2018 Blue Jeep

  4. park 34-HBO-2020 Black Truck

  5. leave 3

  6. park 34-LO-2000 White Car status ###Sample Output 1

  7. Allocated 1 slot.

  8. Allocated 4 slots.

  9. Allocated 2 slots.

  10. Garage is full.

  11. Allocated 1 slot.

  12. Status:

    • 34-SO-1998 Black [1]
    • 34-BO-1987 Red [3,4,5,6]
    • 34-LO-2000 Black [8]

Postman



Swagger



ticketparkingarage's People

Contributors

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