Hello Community
I would like to know if it is possible in API gateway (v10.11) to modify native API JSON response by adding one or more JSON fields/attributes in that response (native API’s response)?
This addition is required before our API sends final response to the consumer. For example, this addition of new fields to native response can be done in response processing stage.
Suppose original native API response is as following:
{
“employee”: {
“id”: 1,
“name”: “MyName”,
“dept”: “HR”,
“type”: “permanent”
}
}
Now, suppose I want to add one new JSON field (e.g. “age”) in above mentioned JSON response at run time, so that final response of our API becomes something like following:
{
“employee”: {
“id”: 1,
“name”: “MyName”,
“age”: 40,
“dept”: “HR”,
“type”: “permanent”,
“grade”: 4
}
}
Please let me know if that is doable in API gateway? If yes, then please guide me how to do it.
Thanks
#webMethods#API-Gateway