on 06-24-2019 11:35 PM
Hi Community,
We are trying to get the entity properties dynamically from the Odata REST API. But so far we can only get the properties from the metadata api, and this need to parse the XML file to get the desire data. We wonder whether there is an OData REST API could return me the properties of a specific entity?
Thanks,
Jack
Hello Jack,
According to the general Odata API implementation (V2), the $metadata page does not work as a normal service of the API. Rather than that, it is implemented as a plain XML file with the information of the entities. Considering this, this page does not support filtering, and it is also not possible to perform a specific query for an entity metadata.
I found and old blog from the Odata.org site, in which the author explains a prototype of a queryable metadata. However it seems that this was not implemented in the version that the C4C is using (V2):
https://www.odata.org/blog/queryable-odata-metadata/
Kind regards,
Leonardo
Support Consultant | SAP Product Support
Community:
SAP Business ByDesign: https://www.sap.com/community/topics/business-bydesign.html
SAP Cloud for Customer: https://www.sap.com/community/topics/cloud-for-customer.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.