Overview

16 Facilitating API design decision-making

Designing web APIs requires a steady stream of choices—naming, identifiers, status codes, pagination, formats—each with potential impact on usability, security, efficiency, and interoperability. This chapter offers a practical playbook for making those choices confidently and consistently: decide at the right moment, right-size the scope, reuse trusted past decisions, draw on vetted external practices, back conclusions with clear reasoning and evidence, and communicate decisions out loud to validate and align stakeholders. The goal is to reduce churn, avoid repeated debates, and turn good decisions into durable, reusable guidance.

To find solid answers to recurring design questions, the chapter details how to research effectively across internal and external sources: existing guidelines, current APIs, framework defaults, generic and domain standards, other organizations’ guidelines, public APIs, and reputable publications. It emphasizes validating how common a solution is and whether it fits your context, while treating “famous company X does it” as insufficient justification. It also recommends recording significant choices with an Architectural Decision Record, capturing the problem, options, pros and cons, reasoning, sources, and consequences. ADRs both force rigor during decision-making and create a transparent, lasting decision log.

Because ADRs alone are cumbersome for day-to-day work, the chapter advocates turning them into user-friendly API design guidelines that accelerate design and improve consistency. Effective guidelines combine clear principles and rules with actionable recipes (for example, search and list patterns, errors, pagination, filtering, and sorting), supported by examples, OpenAPI templates and shared components, and linting tools; they can also include design-process aids and selected implementation considerations. Guidelines should be built iteratively: start small with common operations, consider existing APIs thoughtfully, expand only when real needs emerge, include only rules that deliver tangible value, and evolve carefully to avoid unnecessary breaking changes. Framed this way, governance becomes an enabler—helping teams ship coherent, high-quality APIs at scale.

Designing APIs also involves thinking about simplifying our work to be confident and consistent seamlessly.
CH16 F01 lauret3
This example of ADR uses the MADR template. It’s a Markdown file, but you can use any support (wiki, for example). It describes the problem, solution, reasoning, and sources of information.
CH16 F02 lauret3
Basic guidelines cover the typical operations (create, search, read, update, and delete) and the principles and rules they rely on (covering HTTP usage, data, errors, and additional features).
CH16 F03 lauret3

FAQ

How do I know it’s the right time to make an API design decision?Don’t force answers too early. Separate concerns, capture open questions as notes or placeholders, and revisit once you have a broader view of needs, usability, and extensibility. This isn’t procrastination—it reduces rework and improves decision quality.
How can I evaluate the scope and impact of a design decision?Decide whether it’s a cross-API decision (for example, pagination type, error format, ID naming) or a local, API-specific concern. Invest more rigor in broad, cross-cutting choices and keep local decisions lightweight.
Where should I look first for answers to API design questions?Start with your API design guidelines, then your organization’s APIs and usual development stack. If needed, consult external standards (HTTP, Problem Details, CloudEvents, domain standards), other organizations’ guidelines, public APIs, and reputable books/articles/videos.
How do I leverage trusted past decisions without copying mistakes?Prefer documented guidelines over ad hoc patterns found in individual APIs. Validate that past choices are still suitable for your context. If gaps exist, create or update guidelines using structured, sourced decisions.
How should I use AI and web search when researching design solutions?Use search engines and AI that cite sources. Verify claims, benchmark how common a solution is, and check fit for your context (needs, efficiency, security, consistency). Be wary of uncommon or trendy patterns that reduce interoperability.
What is an Architectural Decision Record (ADR) and how do I use it for API design?An ADR is a concise document that logs a significant decision: context/problem, options, decision, rationale, pros/cons, consequences, and sources. Use formats like MADR. ADRs justify choices and later feed your API design guidelines.
How do I back a design decision with solid reasoning and evidence?State the rationale (user-friendliness, consistency, interoperability), cite trusted sources (standards, guidelines, consumer feedback, benchmarks), and document trade-offs. Not every trivial domain term needs deep research, but cross-cutting patterns usually do.
What are API design guidelines, and how do they relate to API governance?Guidelines are a practical, user-friendly handbook that simplifies and standardizes design. Good governance enables teams with guidelines, tools, and support (not “API police”). Guidelines are valuable even when you work alone.
What should go into user-friendly API design guidelines?Include: principles and rules (use RFC 2119 MUST/SHOULD/MAY), actionable recipes for common tasks, OpenAPI templates and shared components, linting rules, and meta-process aids (capabilities canvas, checklists, trusted sources, ADR templates). Add implementation notes only when they help design.
How do I build and evolve API design guidelines effectively?Start small (create/read/update/delete and basic search), consider existing APIs, expand only when new questions arise, ensure every rule adds clear value, and modify carefully to avoid breaking existing APIs. Use ADRs to justify changes and evolve smoothly.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • The Design of Web APIs, Second Edition ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • The Design of Web APIs, Second Edition ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • The Design of Web APIs, Second Edition ebook for free