You could implementing your own RSS or Atom custom MediaTypeFormatter
. You can implement it so that the request will use this formatter when the accept header is set to application/atom+xml
or application/rss+xml
.
Filip has a blog describing this: RSS & Atom MediaTypeFormatter for ASP.NET WebAPI