问题
What steps are needed to adjust the default XML output of the ASP.NET Web API to generate ATOM and RSS2 feeds?
回答1:
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.
来源:https://stackoverflow.com/questions/12750905/how-to-generate-atom-and-rss2-feeds-with-asp-net-web-api