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

女生的网名这么多〃 提交于 2020-01-03 21:50:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!