Class CowLotController

java.lang.Object
edu.ucsb.cs156.happiercows.controllers.ApiController
edu.ucsb.cs156.happiercows.controllers.CowLotController

@RequestMapping("/api/cowlots") @RestController public class CowLotController extends ApiController
  • 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