Detailed Explanation
REST APIs utilize HTTP methods (GET, POST, PUT, DELETE) to manipulate resource state identified by URIs. Key principles include statelessness, client-server separation, cacheability, and uniform interface design.
Common Mistakes to Avoid
- Using POST for all operations regardless of idempotency
- Including verbs in resource URIs (/getUser)
- Returning HTTP 200 OK with error payload bodies
