You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by "Greg Shaw (JIRA)" <no...@atlassian.com> on 2007/11/01 04:09:00 UTC

[Roller-JIRA] Commented: (ROL-1444) Output JSON from FeedServlet

    [ http://opensource.atlassian.com/projects/roller/browse/ROL-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_14170 ] 

Greg Shaw commented on ROL-1444:
--------------------------------

This doesn't look like it has been worked on since June 07. I've actually taken on some of the project that Dolan originally requested this feature for so I'd like to take it on.

I agree with Allen that a velocity template would be the best solution but I'd like to take it one step further. In FeedServlet.java add a property that allows for output formats and their respective content-types (JSON needs "text/json") and then provide .vm templates for site/weblog and entries/comments in the specified format. This removes the need to modify FeedServlet.java if another format request comes along (we already have another one internally).

> Output JSON from FeedServlet
> ----------------------------
>
>                 Key: ROL-1444
>                 URL: http://opensource.atlassian.com/projects/roller/browse/ROL-1444
>             Project: Roller
>          Issue Type: Improvement
>          Components: Newsfeed Syndication
>    Affects Versions: 3.1.1, 4.0
>         Environment: n/a
>            Reporter: Dolan Halbrook
>            Assignee: Roller Unassigned
>
> It would be useful to me to have a JSON view of the feeds generated from FeedServlet.  I'd be willing to do the work to make this happen and donate it back, but as it is to make this happen I'd have to sublcass virtually all of the FeedServlet and I'm trying to avoid too much customization -- it would be much nicer to roll this back into Roller.
> Basically as I see it this would involve modifying the FeedServlet and creating several .vm files (such as weblog-entries-json.vm) for the JSON views.  Not sure how to handle the XSLT view yet.
> Does anyone see any good reason not to do this?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira