LVSant / springbootbackendhotel

Backend project using Spring Boot and MongoDB for a Hotel Management

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpringBoot Backend Hotel

API for Hotel Management implemented with Spring Boot Maven based project, storing data with MongoDB and deployed at Heroku.

  • This project is used to practice full-stack development, using this as a Backend for a Frontend project that will be built using Angular Framework.

Working Routes

Method Route Description
GET [hotels/all] Return all created hotels
GET [hotels/{hotelId}] Return the hotel that matches the given Id
POST [hotels] Create a new Hotel, with JSON Object with nested objects Address and Reviews as described here

Required Fields for creating a Hotel

  • In order to create a Hotel object, it's necessary to POST a JSON Object like this below in the body of the request
{"name":"Teste Hotel 2","pricePerNight":425,"address":{"city":"Denver","country":"USA"},"reviews":[{"username":"User 2","rating":70,"approved":false}]}

About

Backend project using Spring Boot and MongoDB for a Hotel Management

License:MIT License


Languages

Language:Java 41.0%Language:Shell 33.3%Language:Batchfile 25.7%