xxxxxxxxxx
REST API Design Best Practices
1. Use JSON as the Format for Sending and Receiving Data
2. Use Nouns Instead of Verbs in Endpoints
3. Name Collections with Plural Nouns
4. Use Status Codes in Error Handling
5. Use Nesting on Endpoints to Show Relationships
6. Use Filtering, Sorting, and Pagination to Retrieve the Data Requested
7. Use SSL for Security
8. Be Clear with Versioning
9. Provide Accurate API Documentation
9 Trending Best Practices for REST API Development
REST API Must Accept and Respond with JSON. ...
Go with Error Status Codes. ...
Don't Use Verbs in URLs. ...
Use Plural Nouns to Name a Collection. ...
Well compiled documentation. ...
Return Error Details in the Response Body. ...
Use Resource Nesting. ...
Use SSL/TLS.