As a part of composite api, I need to do following mapping in IBM API management
Request JSON
{
"groupName": "string",
"notes": "string",
"Goal_Description": "string",
"Goal_Date": "string",
"Goal_Target": "string",
"Goal_Contribution": "string"
}
While calling API, this needs to be mapped to
{
"group": {
"groupName": "string",
"notes": "string"
},
"customInformation": [
{
"value": "NA",
"customFieldID": "Goal_Description"
},
{
"value": "NA",
"customFieldID": "Goal_Date"
},
{
"value": "NA",
"customFieldID": "Goal_Target"
},
{
"value": "NA",
"customFieldID": "Goal_Contribution"
}
]
}
When trying to map in API management portal, 'customInformation' is represented as an array of objects and I cannot map individual values to array on objects.
Any suggestions?