Professional Documents
Culture Documents
1. Naming convention
2. Error Handling and status codes
3. Versioning
4. Pagination and Partial request
1. NAMING CONVENTION
NOUNS ARE GOOD, VERBS ARE BAD.
/getAllProjects
/deleteAllProjects
/deleteProject
/createProject
/updateProject
/filterProject
/proj (short name)
SIMPLIFY ASSOCIATIONS
Use name convention as /resource/identifier/resource
List all user projects
Good URL
user/:id/projects
Bad : /listAllUserProjects
What others do ?
Defaults
/v1/projects
Offset = 0
Limit = 10
OTHER IMPORTANT POINTS
http://www.habilelabs.io/