Class JobsController

java.lang.Object
edu.ucsb.cs156.organic.controllers.ApiController
edu.ucsb.cs156.organic.controllers.JobsController

@RequestMapping("/api/jobs") @RestController public class JobsController extends ApiController
  • Constructor Details

    • JobsController

      public JobsController()
  • Method Details

    • allJobs

      @PreAuthorize("hasRole(\'ROLE_ADMIN\')") @GetMapping("/all") public Iterable<Job> allJobs()
    • allJobsPaged

      @PreAuthorize("hasRole(\'ROLE_ADMIN\')") @GetMapping("/all/pageable") public org.springframework.data.domain.Page<Job> allJobsPaged(@RequestParam int page, @RequestParam int size)
    • launchTestJob

      @PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/launch/testjob") public Job launchTestJob(@RequestParam Boolean fail, @RequestParam Integer sleepMs, @RequestParam Integer id)