class JobDefinitionRestController extends HerdBaseController {

    @RequestMapping(value = "/jobDefinitions", method = RequestMethod.POST, consumes = {"application/xml", "application/json"})
    @Secured(SecurityFunctions.FN_JOB_DEFINITIONS_POST)
    public JobDefinition createJobDefinition(@RequestBody JobDefinitionCreateRequest request) throws Exception
    {
        return jobDefinitionService.createJobDefinition(request, true);
    }

}