In this video we will discuss
1. What is MediaTypeFormatter
2. How to return only JSON from ASP.NET Web API Service irrespective of the Accept header value
3. How to return only XML from ASP.NET Web API Service irrespective of the Accept header value
4. How to return JSON instead of XML from ASP.NET Web API Service when a request is made from the browser
5. Point you to an article that describes how to return CSV formatted data from ASP.NET Web API
Text version of the video
[ Ссылка ]
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
[ Ссылка ]
Slides
[ Ссылка ]
All Dot Net and SQL Server Playlists
[ Ссылка ]
All ASP.NET Web API Text Articles and Slides
[ Ссылка ]
CSV Formatter
[ Ссылка ]
ASP NET Web API MediaTypeFormatter
Теги
ASP.NET Web API return json instead of xmlasp net web api always return jsonasp.net web api return xml by defaultweb api return xml instead of jsonasp net web api return only jsonasp.net web api return csvweb api media type formatter csvasp.net web api jsonmediatypeformatterasp net web api custom mediatypeformattermediatypeformatter jsonmediatypeformatter xml