I'm working with an ODATA endpoint in SAP and I noticed that SAP sends a __metadata property which isn't described in the $metadata unfortunately. Not sure if it can be "turned on" via a query parameter. However it's there.
I looked though the XSLT scripts and couldn't find a "handler" for the __metadata property. Is it possible to add this to the generated OAS when converting a metadata from SAP OData?
The reason why the __metadata property is relevant is because it contains the etag value for an entity.
The SAP ODATA response looks like this:
I'm working with an ODATA endpoint in SAP and I noticed that SAP sends a
__metadataproperty which isn't described in the $metadata unfortunately. Not sure if it can be "turned on" via a query parameter. However it's there.I looked though the XSLT scripts and couldn't find a "handler" for the
__metadataproperty. Is it possible to add this to the generated OAS when converting a metadata from SAP OData?The reason why the
__metadataproperty is relevant is because it contains theetagvalue for an entity.The SAP ODATA response looks like this:
{ "d": { "results": [ { "__metadata": { "id": "https://.../{dataservice}/{resource}('id')", "uri": "https://.../{dataservice}/{resource}('id')", "type": "{dataservice}.{resource}", "etag": "..." }, "...": "..." // omitted } ] } }