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 Details

    • ProfitsController

      public ProfitsController()
  • Method Details

    • allProfitsByCommonsId

      @PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping("/all/commonsid") public Iterable<Profit> allProfitsByCommonsId(@RequestParam Long commonsId)
    • allProfitsByCommonsIdPaged

      @PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping("/all/commonsid/pageable") public org.springframework.data.domain.Page<Profit> allProfitsByCommonsIdPaged(@RequestParam int page, @RequestParam int size)