Web APIs Handbook
Anyone can return JSON from an HTTP route, but inconsistent status codes, broken pagination, duplicate charges on retry, and surprise breaking changes turn an API into a support nightmare.
This book gives you practical design patterns for building solid REST APIs from start to finish, covering clear error contracts, caching, idempotency, rate limits, webhooks, and safe deprecation.
Table of contents (9 chapters)
- Part 1: Resource design and HTTP semantics
- Part 2: Contracts, RFC 9457 errors, and our real Node.js 22 API
- Part 3: Pagination, filtering, and sorting
- Part 4: HTTP caching and optimistic concurrency
- Part 5: Reliability, idempotency, rate limits, and webhooks
- Part 6: API versioning and clean evolution
- Deep Dive: HTTP Foundations for API Designers
- Deep Dive: API Contracts, Authorization, and Operations
- Web API production checklist
Get the Web APIs Handbook for free: subscribe to my newsletter and I'll send it your way, together with all my other free programming ebooks.
Want the whole collection? See all my free ebooks.
By subscribing you agree to receive my newsletter (new tutorials, book releases, and courses). You can unsubscribe anytime from the link at the bottom of every email. Your email is the only data collected, stored securely in the EU, and never shared.