Emitting Comments

Topics: Web Api
Jan 19, 2012 at 7:27 PM

One thing I would really like to do is include service announcements via comments in the feed. A couple of partner's whose feeds I consume do this occasionally to communicate upcoming updates, changes, etc. 

Is there an easy way to prepend and XML comment (or JS comment for JSON)? If not, it would be a handy feature.

Jan 20, 2012 at 10:18 AM

Not sure what "feed" you have, but if you generate XML and JSON representations of your resources via media type formatters in Web API, then you have complete control of what and how you write to the outgoing stream.

Jan 20, 2012 at 11:40 PM

That was pretty easy to do. Thanks for the pointer.