Class HotelsController
java.lang.Object
edu.ucsb.cs156.example.controllers.ApiController
edu.ucsb.cs156.example.controllers.HotelsController
-
Constructor Summary
-
Method Summary
Methods inherited from class edu.ucsb.cs156.example.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException
-
Constructor Details
-
HotelsController
public HotelsController()
-
-
Method Details
-
allHotels
-
getById
-
postHotel
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/post") public Hotel postHotel(@RequestParam String name, @RequestParam String address, @RequestParam String description) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
deleteHotel
-
updateHotel
-