Make a project with web Api c # return an RSS

Posted on

Question :

I need to have my project in rest WEB API return RSS instead of json or XML … would you like to see if anyone has already managed to do it?

    

Answer :

I was able to solve this tutorial link and adding the code below in Global.asax inside Application_Start:

GlobalConfiguration.Configuration.Formatters.Clear (); GlobalConfiguration.Configuration.Formatters.Add (new SyndicationFeedFormatter ());

Leave a Reply

Your email address will not be published. Required fields are marked *