Class JobsController
java.lang.Object
edu.ucsb.cs156.organic.controllers.ApiController
edu.ucsb.cs156.organic.controllers.JobsController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallJobs()
org.springframework.data.domain.Page<Job>
allJobsPaged
(int page, int size) launchTestJob
(Boolean fail, Integer sleepMs) Methods inherited from class edu.ucsb.cs156.organic.controllers.ApiController
genericMessage, getCurrentUser, getMapper, handleAccessDeniedException, handleGenericException, handleIllegalArgumentException, mapperThatIgnoresMockitoMocks
-
Constructor Details
-
JobsController
public JobsController()
-
-
Method Details
-
allJobs
-
allJobsPaged
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") @GetMapping("/all/pageable") public org.springframework.data.domain.Page<Job> allJobsPaged(@RequestParam int page, @RequestParam int size) -
launchTestJob
-