I am using SAG webMethods 10.15. I have a standard JSON response and I want to remove some elements from standard JSON response for specific Clients.
Lets take a scenario where we have Order Name, Order Status, Order Number and Order date in standard JSON response and I want to send Order Name, Order Status and Order Number to specific Clients.
I would appreciate if experts in community can guide me how can I achieve this in webMethods API Gateway or using flow service in SAG Designer.
You can achieve this fairly easily using Data Masking policies. If you want to mask differently based on the client, you can define applications to group your consumers. In response processing, you can assign different data masking policies for different sets of applications.
To remove a JSON element, like order date, use the JSON path (ex: $.[‘Order Date’]) and check “filter” rather than “mask”. Note that the bracket & single quote notation is required when there are spaces in the name.
Data Masking | Software AG - YouTube
Hope this helps,
Thank You @Theodore_Ezell1, I was able to filter response using the approach you suggested.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.