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