项目作者: laioviana

项目描述 :
Java/Spring - Room Occupancy Manager
高级语言: Java
项目地址: git://github.com/laioviana/booking.git
创建时间: 2021-03-22T22:29:02Z
项目社区:https://github.com/laioviana/booking

开源协议:

下载


Room Optimization App

Startup Instructions

  • Clone de project into your computer
  • Make sure you have maven installed in your computer
  • On console in the project file type: mvn spring-boot:run and mvn test to run tests
    The application should run locally in your 8080 port.

API Instructions
POST method /room/optimize-rooms
This method needs a JSON body

  1. {
  2. "potentialGuests": [
  3. 0
  4. ],
  5. "roomAvailableEconomy": 0,
  6. "roomAvailablePremium": 0
  7. }

potentialGuests an array of Integer, roomAvailableEconomy and roomAvailablePremium an Integer as the activity requeries.

Expect a response of:

  1. { "amountPaidEconomy": 0, "amountPaidPremium": 0, "usageEconomy": 0, "usagePremium": 0 }

You can also access the API on the SWAGGER UI /swagger-ui.html

This API is live in a heroku app so you can try the https://laio-booking.herokuapp.com/room/optimize-rooms to test the API or the Swagger UI