Skip to content

Instantly share code, notes, and snippets.

@shadow-fox
Created April 30, 2014 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadow-fox/c514f802f61211ade512 to your computer and use it in GitHub Desktop.
Save shadow-fox/c514f802f61211ade512 to your computer and use it in GitHub Desktop.
nested url resource
http://api.server/resource/id/child/:id
where resource id is compulsory but child's not. So that when queries for all resource's child the request will fire up
as http://api.server/resource/id/child , for creating a new child would be same.
For individual child records it would be http://api.server/resource/id/child/:id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment