Ok, but then how do I wrap that in a 'links' hash?
"links": {
},
and then, in the resource itself, create this
"posts": [{
"id": "1",
"links": {
"comments": [ "5", "12", "17", "20" ]
}
}]
Oliver
On June 17, 2014 at 11:53:51 AM, Nick Sutterer (
apot...@gmail.com) wrote:
> So, a DSL like that
>
> link "posts.comments", type: :comments do
>
> "
http://example.com/comments/{posts.comments}"
>
> end
>
> would produce that
>
> "posts.comments": {
> "href": "
http://example.com/comments/{posts.comments}",
> "type": "comments"
> }
>
>
> Right?
>
>
> On Tue, Jun 17, 2014 at 7:47 PM, Nick Sutterer wrote:
>
> > I thought about providing JSON-API support in Roar in general if anyone
> > helps me out with tests.
> >
> >
> > On Tue, Jun 17, 2014 at 7:45 PM, Oliver Barnes