peej/tonic — Issue #71: Nested resources
Author: MPV
Created: 2012-03-07 09:24:01+00:00
State: open

Hi Paul (@peej),
This looks awesome! Really great work here. Also very interesting with the RMR architecture pattern.

I've started looking at Tonic a bit and I'm curious about how you envision best to do nested resources.

Example:

/users/123/comments/232

I guess the @uri tag would look like this?

@uri /users/{id}/comments/{id}

Would you then call the resource Comments or UserComments?
Would you need to change the two "id"s into "userid" and "commentid" in the uri mapping?