Search code examples
asp.netasp.net-web-apirssatom-feed

How to generate ATOM and RSS2 feeds with ASP.NET Web API?


What steps are needed to adjust the default XML output of the ASP.NET Web API to generate ATOM and RSS2 feeds?


Solution

  • You will need to implement a custom MediaTypeFormatter. You might want to check Filip's blog post on RSS & Atom MediaTypeFormatter for ASP.NET WebAPI.