Class ParksController
java.lang.Object
edu.ucsb.cs156.example.controllers.ApiController
edu.ucsb.cs156.example.controllers.ParksController
-
Constructor Summary
-
Method Summary
Methods inherited from class edu.ucsb.cs156.example.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException
-
Constructor Details
-
ParksController
public ParksController()
-
-
Method Details
-
allParks
-
getById
-
postPark
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/post") public Park postPark(@RequestParam String name, @RequestParam String address, @RequestParam String rating) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
deletePark
-
updatePark
-