-
Bug
-
Resolution: Done
-
High
-
Beijing Release
-
None
-
None
Currently the SO payload is sent in this format :
}{{ "body": { … }, "headers": { … }}
Instead of this :
{ ... }
This file needs to be changed in order to only send the body content :
src/main/java/org/onap/nbi/apis/serviceorder/SoClient.java
try {
ResponseEntity<CreateServiceInstanceResponse> response = restTemplate.exchange(url, HttpMethod.POST,
< new HttpEntity<>(requestDetailEntity.getBody(), buildRequestHeader()), CreateServiceInstanceResponse.class);
—
> new HttpEntity<>(requestDetailEntity, buildRequestHeader()), CreateServiceInstanceResponse.class);
try {
ResponseEntity<CreateServiceInstanceResponse> response = restTemplate.exchange(url, HttpMethod.DELETE,
< new HttpEntity<>(requestDetailEntity.getBody(), buildRequestHeader()), CreateServiceInstanceResponse.class);
—
> new HttpEntity<>(requestDetailEntity, buildRequestHeader()), CreateServiceInstanceResponse.class);