Learn how to build robust, future-proof APIs by applying the latest industry best practices, avoiding common pitfalls, and understanding anti-patterns
Key Features
Design APIs with your audience in mind to improve usability, lifecycle management, and communication
Learn how to create a client-centric REST API design leveraging OpenAPI and JSON Schema
Explore API versioning strategies, and gain hands-on experience with API testing and implementation
Purchase of the print or Kindle book includes a free PDF eBook
Book DescriptionDesigning APIs that are built to last—scalable, user-focused, and robust—isn’t just a technical challenge but a design imperative. 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, the use of 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 the application of domain-driven design. You’ll develop a solid foundation in REST API design as you discover different styles, design constraints, and more. Beyond design, the book covers testing techniques, API evolution, maintenance, and deprecation.
By the end of the book, you’ll not only know how to design great APIs—you’ll understand how to treat them as products, manage their full lifecycle, and deliver real value by ensuring your APIs stay relevant and reliable long after their initial release.What you will learn
Assess your client's needs to design APIs that communicate the value of your product
Understand the role of API lifecycle and the importance of contracts
Apply domain-driven design principles in API architecture
Embrace a modern approach to REST API design
Use the OpenAPI Specification and JSON Schema for standardized APIs
Evolve, maintain, and deprecate your APIs without disrupting your users
Who this book is forThis book is for professionals involved in the digital product lifecycle who want to deepen their understanding of API design and build future-proof APIs with a product-centric approach. API developers, solution architects and engineers, technical product owners, and software architects looking to extend their skills in creating efficient, scalable, and maintainable APIs will find this book particularly useful. Basic knowledge of APIs and the HTTP protocol is recommended to fully benefit from the design principles and practices covered.
Table of Contents
The “Why” of API Development
API as a Product: Designing APIs with a Product Mindset
Understanding Application and API Life Cycles
Applying Domain-Driven Design to APIs
Comparing and Choosing the Right API Style
REST Design Constraints and Maturity Models
Constructing an API Design Domain Model
Designing and Managing Effective API Contracts
Understanding the OpenAPI Specification
OpenAPI as a Contract: Best Practices and Implementation
Using JSON Schema to Define Your Object Models
Don't Hate Your Hypermedia: Creating APIs For Humans and AIs
API Change Management: Strategies for Versioning and Evolution
Height:
Width:
Spine:
Weight:0.00