Friday, February 03, 2012

restful url - How to create REST URLs without verbs? - Stack Overflow

restful url - How to create REST URLs without verbs? - Stack Overflow: "General principles for good URI design:

Don't use query parameters to alter state
Don't use mixed-case paths if you can help it; lowercase is best
Don't use implementation-specific extensions in your URIs (.php, .py, .pl, etc.)
Don't fall into RPC with your URIs
Do limit your URI space as much as possible
Do keep path segments short
Do prefer either /resource or /resource/; create 301 redirects from the one you don't use
Do use query parameters for sub-selection of a resource; i.e. pagination, search queries
Do move stuff out of the URI that should be in an HTTP header or a body"

'via Blog this'