Please enable JavaScript.
Coggle requires JavaScript to display documents.
REST API Naming Standards & Best Practices - Coggle Diagram
REST API Naming Standards & Best Practices
HTTP Request Methods
POST => Create
GET => read
PUT => update/replace
PATCH => update/modify
DELETE => delete
OPTIONS => permitted communication operations
HEAD => headers
TRACE => debugging
CONNECT => 2 way communication SSL/TCP
HTTP Status Codes
1XX => informational
2XX => success
3XX => redirectional
4XX => client error
5XX => server error
Best Practices in API naming
No secure info in the URI
Use plurals
Use hyphen separated lower case
Use nouns for resources
Use semicolon or comma in lists
Use camelCase for parameters
Add Accept request header
Support versioning
HETEOAS