completed nflow integration into onboarding
This commit is contained in:
@@ -139,6 +139,13 @@ public class RestService {
|
||||
return responseEntity;
|
||||
}
|
||||
|
||||
public <T> ResponseEntity<T> postAsEntity(String path, Object payload, HttpHeaders headers, Class<T> clazz){
|
||||
// build the request
|
||||
HttpEntity entity = new HttpEntity<>(payload, headers);
|
||||
ResponseEntity responseEntity = this.restTemplate.exchange(path, HttpMethod.POST, entity, clazz);
|
||||
return responseEntity;
|
||||
}
|
||||
|
||||
public <T> T postAs(String path, Object payload, HttpHeaders headers, Class<T> clazz){
|
||||
// build the request
|
||||
HttpEntity entity = new HttpEntity<>(payload, headers);
|
||||
|
||||
@@ -33,6 +33,8 @@ public class RestTemplateInterceptor
|
||||
String requestBody = new String(reqBody, StandardCharsets.UTF_8);
|
||||
if(!isJSONValid(requestBody)) requestBody = toBasicJson(requestBody);
|
||||
|
||||
logger.info("Request Headers: {}", request.getHeaders().toString());
|
||||
|
||||
// we don't log file data
|
||||
if(request.getHeaders().getContentLength() < 10000){
|
||||
logger.info("Request: {}: {}\n{}",
|
||||
|
||||
Reference in New Issue
Block a user