Resource Naming

Use nouns, not verbs. Your endpoints should represent resources: /api/users, /api/posts, /api/comments.

HTTP Methods

Leverage the full spectrum of HTTP methods: GET for retrieval, POST for creation, PUT/PATCH for updates, and DELETE for removal.

Error Handling

Return meaningful error responses with appropriate HTTP status codes. A 404 means not found, 422 means validation error, 500 means server error.