Allow generic media type marshalling (as rdf, xhtml, xml, json) customization
-
Marcio Vinicius dos Santos
- Assigned user cleared.
Does recursive invocation allow creation of the atom feed below or do I need to create a new ticket ?
Portion of feed with recursive invocation:
<articles:body type="html">body</articles:body> <articles:creation> <articles:author>John Dee</articles:author> <articles:creation_date>2010-05-03T16:29:26-03:00</articles:creation_date> </articles:creation>Full feed sample:
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:articles="http://localhost:3000/articles"> <id>http://localhost:3000/articles</id> <title>Articles Feed</title> <updated>2010-05-03T16:29:26-03:00</updated> <entry> <title>article title</title> <id>http://localhost:3000/articles/article_title</id> <updated>2010-05-03T16:29:26-03:00</updated> <link href="http://localhost:3000/articles/article_title" rel="self"/> <articles:body type="html">body</articles:body> <articles:creation> <articles:author>John Dee</articles:author> <articles:creation_date>2010-05-03T16:29:26-03:00</articles:creation_date> </articles:creation> </entry> </feed> -
Guilherme Silveira
Hello marcio, yes it already supports this type of rendering even without the recursive approach, try the follwogin:
Describe_collection( [@articles]) do
EndNote that ive added your collection within a collection, so you have a feed of collections, as you wished. Just describe the fields with namespace. Let me know if you need the exact code.
Regards
-
Marcio Vinicius dos Santos
Hi Guilherme, would you please show one sample ?
best regards -
Guilherme Silveira
Yes, you can see this example:
http://github.com/caelum/restfulie-provisioning/tree/master/app/vie...And the entire project:
http://github.com/caelum/restfulie-provisioning -
Guilherme Silveira
- Milestone cleared.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.