Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

New Post: Web API OData - atom+xml formatting issue when getting individual properties

$
0
0
Complex properties are formatted as application/xml. Only entries and feeds (entities and collection of entities) are formatted as application/atom+xml. So, the behavior that you are seeing is correct.

You can get the behavior that you want by putting application/atom+xml and application/xml in the accept header like, "application/atom+xml,application/xml"

Viewing all articles
Browse latest Browse all 7925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>