How to get ODATA metadata in xml format?

I am trying to get the metadata of the ODATA API in XML format. When I request$metadata I get the response as JSON. I tried query parameter $format=xml and Accept header, but the response is always JSON. But I need it as XML to be able to generate entities in another tool.

Welcome to the forum.

Would JSON to XML conversion be an option
e.g. Converting between JSON and XML
or manually set up

Also try this: odata/$metadata/?$format=xml

Thanks @ppr! This is our plan B. From my understanding XML is the ODATA standard for representing the metadata. That’s why I was hoping that there is an easier solution.

We crossed in milliseconds. Hope you had seen second answer, it looks working

Wow! I tried without a / before the parameters. It only works with the slash. Thank you very much!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.