Skip to Content
0
Dec 16, 2020 at 09:16 AM

How to remove metadata in json Odata response in SAP API Management

2204 Views

{

"d":

{"results":

[{"__metadata": {"id": "https://sapes5.sapdevcenter/******/purchaseorders"uri": "https://sapes5.sapdevcenter/******/purchaseorders"

type": "SEPMRA_PO_APV.PurchaseOrder"

},

"ChangedAt": "/Date(1606604400000)/","ProductId": "","CurrencyCode": "USD","DeliveryAddress": "Zeppelinstrasse 2, 8

Here i want to remove or Hide that metadata in the json . When ever call an api that odata response has meta data . Its possible to remove that metadata in sap api management by using javascript policy and some other policies in api portal . Do you have any idea how to implement this