Skip to content

Instantly share code, notes, and snippets.

@ggdio
Last active December 24, 2015 04:09
Show Gist options
  • Save ggdio/6741948 to your computer and use it in GitHub Desktop.
Save ggdio/6741948 to your computer and use it in GitHub Desktop.
REST URL CONVENTION
Pattern:
LIST:
http://[domain]/[context]/[main-resource]/
IDENTIFY:
http://[domain]/[context]/[main-resource]/[identifier]
RESOURCE:
http://[domain]/[context]/[main-resource]/[identifier]/[sub-resource]
Example:
LIST-USERS
http://ggdio.com.br/mysystem/users/
IDENTIFY USER WITH ID = 5
http://ggdio.com.br/mysystem/users/5
USER IMAGE WITH ID = 5
http://ggdio.com.br/mysystem/users/5/image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment