Class CowLotController
java.lang.Object
edu.ucsb.cs156.happiercows.controllers.ApiController
edu.ucsb.cs156.happiercows.controllers.CowLotController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String>
getCowLotsById
(Long commonsId) Methods inherited from class edu.ucsb.cs156.happiercows.controllers.ApiController
genericMessage, getCurrentUser, handleBadRequest, handleGenericException
-
Constructor Details
-
CowLotController
public CowLotController()
-
-
Method Details
-
getCowLotsById
@PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping("/forcurrentuser") public org.springframework.http.ResponseEntity<String> getCowLotsById(@RequestParam Long commonsId) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-