Hello,
I have configured a web service connector Account Aggregation API as following:
- Operation type: Account aggregation
- HTTP Method: GET
Header is having Bearer [This one is working fine] - JSON body: (as raw)
{
"appname" : "text",
"type" : "user"
}
the above api call is to get all users but in IDN the api call is running as if json body is not exists.
Even i try to add the bode in before rule as follows but still the body is not going into GET API call. Can some one suggest how to pass the json body.
Map bodyMap = new HashMap();
bodyMap.put("bodyFormat", "raw");
String xmlBody = "{\"appname\":\"text\",\"type\":\"user\"}";
bodyMap.put("jsonBody", JsonUtil.render(xmlBody));
requestEndPoint.setBody(bodyMap);