Class ProfitsController
java.lang.Object
edu.ucsb.cs156.happiercows.controllers.ApiController
edu.ucsb.cs156.happiercows.controllers.ProfitsController
@RequestMapping("/api/profits")
@RestController
public class ProfitsController
extends ApiController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallProfitsByCommonsId
(Long commonsId) org.springframework.data.domain.Page<Profit>
allProfitsByCommonsIdPaged
(int page, int size) Methods inherited from class edu.ucsb.cs156.happiercows.controllers.ApiController
genericMessage, getCurrentUser, handleBadRequest, handleGenericException
-
Constructor Details
-
ProfitsController
public ProfitsController()
-
-
Method Details
-
allProfitsByCommonsId
-
allProfitsByCommonsIdPaged
@PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping("/all/commonsid/pageable") public org.springframework.data.domain.Page<Profit> allProfitsByCommonsIdPaged(@RequestParam int page, @RequestParam int size)
-