#53 new
Guilherme Silveira

Allow generic media type marshalling (as rdf, xhtml, xml, json) customization

Reported by Guilherme Silveira | April 30th, 2010 @ 03:29 PM

Change builder processing to recursive invocations so it allows customization.

Comments and changes to this ticket

  • Marcio Vinicius dos Santos

    Marcio Vinicius dos Santos May 4th, 2010 @ 10:47 AM

    • 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

    Guilherme Silveira May 4th, 2010 @ 11:42 PM

    Hello marcio, yes it already supports this type of rendering even without the recursive approach, try the follwogin:

    Describe_collection( [@articles]) do
    End

    Note 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

    Marcio Vinicius dos Santos May 5th, 2010 @ 11:12 AM

    Hi Guilherme, would you please show one sample ?
    best regards

  • Guilherme Silveira
  • Guilherme Silveira

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Pages