Hanlde dynamic REST response in OIC
Content
Hi Experts,
I'm calling the external REST API in OIC which returns the dynamic response as below:
Response-1
{
"name":"Ankur",
"age":1
}
Response-2
{
"contact":"aaa",
"email":"dd"
}
How to handle such response in the mapper, if response-1 comes, I only want to map those fields and if response-2 comes in I only want to map those fields.
Please help to solve.
Regards,
Ankur
Tagged:
1