} else {
return new ResponseEntity<>(HttpStatus.NOT_FOUND);
}
-
}
@PutMapping(path = API_ROOT + "/info-producers/{infoProducerId}", //
new ProducerJobInfo(job.jobDefinition, jobId, job.infoTypeId, job.jobResultUri, job.owner, "TIMESTAMP");
String body = gson.toJson(request);
logger.info("ECS Simulator PUT job: {}", body);
- restClient.post(url, body).block();
+ restClient.post(url, body, MediaType.APPLICATION_JSON).block();
}
public void deleteJob(String jobId, AsyncRestClient restClient) {