class JobManagementSpringResource {

    @ApiOperation("Create a job")
    @PostMapping(path = "/jobs")
    public ResponseEntity<JobId> createJob(@RequestBody JobDescriptor jobDescriptor, CallMetadataAuthentication authentication) {
        String jobId = Responses.fromSingleValueObservable(jobServiceGateway.createJob(jobDescriptor, authentication.getCallMetadata()));
        return ResponseEntity.status(HttpStatus.ACCEPTED).body(JobId.newBuilder().setId(jobId).build());
    }

    @Inject public  JobManagementSpringResource(JobServiceGateway jobServiceGateway, SystemLogService systemLog);

}