This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |