Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying RESTful API Design Patterns and Best Practices
  • Table Of Contents Toc
RESTful API Design Patterns and Best Practices

RESTful API Design Patterns and Best Practices

By : Andrzej Jarzyna, Samir Amzani
close
close
RESTful API Design Patterns and Best Practices

RESTful API Design Patterns and Best Practices

By: Andrzej Jarzyna, Samir Amzani

Overview of this book

Designing scalable, user-focused, and robust APIs that last isn’t just a technical challenge but a design imperative. Written by API leaders with over 30 years of combined experience in API strategy, governance, and community, this book is your comprehensive guide to API design, focusing on domain-driven, consumer-centric APIs that meet real user needs while remaining flexible and maintainable over time. It covers modern REST API design, tools like OpenAPI and JSON Schema, and the importance of a product-based approach. The chapters help you explore best practices, potential pitfalls, and anti-patterns, extending beyond the design phase. Starting with the “why” behind building an API, its intended users, and value, this book walks you through the API lifecycle, the role of contracts, and applying domain-driven design. You’ll develop a solid foundation in REST API design as you discover different styles, constraints, and more. Beyond design, the book covers testing techniques, API evolution, maintenance, and deprecation. By the end, you’ll not only know how to design great APIs but understand how to treat them as products, manage their lifecycle, and deliver real value by keeping your APIs relevant and reliable long after release. *Email sign-up and proof of purchase required
Table of Contents (20 chapters)
close
close
Lock Free Chapter
1
The Apprentice’s Study – Preparing for the Craft
6
The Wizard’s Grimoire – Mastering the Fundamentals of REST
11
The Archmage’s Circle – Forging and Evolving API Contracts
18
Other Books You May Enjoy
19
Index

Preface

APIs are everywhere, yet many of us have learned to design them through trial and error, often more error than we’d care to admit. RESTful API Design Patterns and Best Practices was born from our collective “aha moments” and, frankly, our mistakes while working with teams across different organizations. We noticed that most API design resources fall into two camps: highly technical guides that assume you’re building in a vacuum, or business-focused books that gloss over the nitty-gritty details. The reality? Great API design happens at the intersection of both worlds.

Between the two of us, we’ve run API initiatives at companies like Adidas, Backmarket, ING, and PZU; watched countless teams struggle with the same challenges; and celebrated when they finally clicked with the right approach. What became clear is that there’s a sweet spot between technical excellence and business value, and that’s exactly where this book aims. Plus, with AI systems getting chattier and more dependent on well-crafted APIs, the bar for good API design just got higher.

Think of this book as your guided tour through three distinct territories. Part 1: The Apprentice’s Study is where we get comfortable with the fundamentals—why APIs exist, how to think about them as products, and how to apply domain thinking that actually makes sense. Part 2: The Wizard’s Grimoire is where we roll up our sleeves and dive deep into REST design, comparing different approaches and building solid foundations. Part 3: The Archmage’s Circle is where we get practical with OpenAPI, JSON Schema, hypermedia, and keeping your APIs healthy as they evolve.

While you could jump around the book like a choose-your-own-adventure novel, we’ve structured it with some method to our madness. The Domain-Driven Design chapters in Part 1 build on each other, and the technical chapters in Part 3 are definitely better as a progression. Trust us on this one; we’ve seen what happens when teams skip the foundation work.

To keep things practical, we follow a “Magic Items store” through Chapters 9–12. This isn’t just academic theory; these patterns come from real projects, real deadlines, and real conversations with development teams who needed solutions yesterday.

Here’s the thing: we’re at a fascinating moment where traditional API design meets AI-driven interactions. The APIs you design today need to work for both human developers debugging at 2 a.m. and AI agents that might consume your endpoints in ways you never imagined. This book gives you the tools to build for both audiences without losing your sanity.

Whether you’re designing your first API or you’re the person everyone turns to when things get complicated, we hope this book becomes the resource you wish you’d had when you started, practical, comprehensive, and maybe even a little fun.

Andrzej Jarzyna & Samir Amzani

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
RESTful API Design Patterns and Best Practices
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon