Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
The proposal is following: in response of method "/jobs/trigger/{id}" to return JobInstance
@RequestMapping(value = "/jobs/trigger/{id}", method = RequestMethod.POST) @ResponseStatus(HttpStatus.OK) public JobInstanceBean triggerJob(@PathVariable("id") Long id) throws SchedulerException { return jobService.triggerJobById(id); }
Now this method looks like this
@RequestMapping(value = "/jobs/trigger/{id}", method = RequestMethod.POST) @ResponseStatus(HttpStatus.NO_CONTENT) public void triggerJob(@PathVariable("id") Long id) throws SchedulerException { jobService.triggerJobById(id); }