5. APIs: The Contract
Illustration from the book5
APIs: The Contract
How Frontend and Backend Agree to Communicate
- 5.1Peter's First API Problem
- 5.2APIs: The Big Picture
- 5.3Building Peter's First REST API
- 5.4Authentication: Who Are You?
- 5.5The Evolution: From Passwords Every Time to Modern Auth
- 5.6Session Cookies: The Original Solution (Early 2000s)
- 5.7JWT: The Modern Approach (2010s)
- 5.8Sessions vs JWT: The Trade-offs
- 5.9Authorization: What Can You Do?
- 5.10CORS: Peter's Deployment Disaster
- 5.11Security: Defending Against Attacks
- 5.12Peter's Takeaways