Make a project with web Api c# return an RSS

Asked

Viewed 85 times

3

I’m needing to get my project in Rest WEB API to return RSS instead of json or XML ... I’d like to see if anyone has already done it ?

  • 1

    Here at that link has a complete project implementing custom media formats.

  • But RSS is an XML only formatted according to be with the data of the "news"

  • Did you find a solution? Poste as an answer to help other people.

  • @bigown I followed this tutorial http://www.strathweb.com/2012/04/rss-atom-mediatypeformatter-for-asp-net-webapi/ I’m looking for the project but I think to return only rss I added this code below in Global.asax inside Application_start Globalconfiguration.Configuration.Formatters.Clear(); Globalconfiguration.Configuration.Formatters.Add(new Syndicationfeedformatter());

  • And it worked for you? Post as an answer for everyone to enjoy. And accept it later.

1 answer

1


Browser other questions tagged

You are not signed in. Login or sign up in order to post.