[api] add routes to get XML view of comments

issue 545