How do I get Odata Web API to return data in the X

2019-07-13 16:57发布

I have created a Odata Web API service, by default this service returns data in JSON format. How can I get the data in the XML format?

Thanks

1条回答
我命由我不由天
2楼-- · 2019-07-13 17:37

If you are using OData V4, JSON is the default and recommended format for response payload and also the OASIS standard. So I highly recommend you to use JSON unless you have special reasons. If you have to get XML format, the thread WebAPI OData $format to xml may be helpful.

查看更多
登录 后发表回答