class JobRestController extends HerdBaseController {

    @RequestMapping(value = "/jobs", method = RequestMethod.POST, consumes = {"application/xml", "application/json"})
    @Secured(SecurityFunctions.FN_JOBS_POST)
    public Job createJob(@RequestBody JobCreateRequest request) throws Exception
    {
        // Create and return a new job.
        return jobService.createAndStartJob(request);
    }

}