Ibm cloud 在IBMAPI管理中,如何将值数组映射到对象数组?
作为复合api的一部分,我需要在IBMAPI管理中进行以下映射 请求JSONIbm cloud 在IBMAPI管理中,如何将值数组映射到对象数组?,ibm-cloud,api-management,Ibm Cloud,Api Management,作为复合api的一部分,我需要在IBMAPI管理中进行以下映射 请求JSON { "groupName": "string", "notes": "string", "Goal_Description": "string", "Goal_Date": "string", "Goal_Target": "string", "Goal_Contribution": "string" } 调用API时,需要将其映射到 { "group": { "
{
"groupName": "string",
"notes": "string",
"Goal_Description": "string",
"Goal_Date": "string",
"Goal_Target": "string",
"Goal_Contribution": "string"
}
调用API时,需要将其映射到
{
"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"
}
]
}
在API管理门户中尝试映射时,“customInformation”表示为对象数组,我无法将单个值映射到对象上的数组
有什么建议吗?我和同事们商量过,到目前为止,还没有能力将多个属性映射到一个数组对象。我也没有建议。谢谢你的检查。我还打开了一个支持票证,这种映射在api管理服务中是不可能的