liveBook · Manning

User-friendly api

As explained in The Design of Web APIs, Second Edition

User-friendliness is the quality of an operation or interface that makes it easy for consumers to understand and use.

A user-friendly API is easy to understand and use. It helps consumers integrate capabilities efficiently and supports a clear experience for the people using resulting applications. section 8.1 section 8.1.3

Figure 8.1 Designing a versatile API that does the job is a good start, but we must ensure that it’s user-friendly and interoperable.
figure

Use this figure to distinguish an API that performs the right job from one that also supports usability and interoperability. section 8.1

A discoverable messaging operation

A cryptic POST /x2501 operation, a noncompliant 2OO OK response, and an unclear missing-data error create integration friction. POST /messages with 400 Bad Request and {"error":"Missing phone number"} is easier to understand and integrate. section 8.1.3

Improve user-friendliness by revisiting the API after its versatile capabilities are established:

  • Represent operations with understandable HTTP methods and resource paths, then optimize them during the second design pass. section 9.2.1
  • Use user-friendly data, operations, and flows, while giving the API a clear purpose that meets focused needs. section 11.1 section 11.5
  • Support appropriate discovery with OPTIONS, pagination, formats, resource links, and standard hypermedia metadata; add browsing only when needed. section 11.5

How The Design of Web APIs, Second Edition covers it

How deep it goes
Explains usability across data, operations, flows, and APIs, then gives HTTP and discovery guidance without detailing implementation internals.
Examples
Uses messaging paths, status codes, error JSON, OPTIONS, pagination, formats, resource links, and hypermedia metadata as concrete artifacts.
What it assumes
Assumes a versatile API already meets identified needs, while introducing usability and interoperability as a subsequent design concern.
What you can do after
Apply a second design pass that improves HTTP representations, error clarity, discovery, and API boundaries for consumer needs.
How it connects
Connects user-friendliness with interoperability, API user experience, HTTP operations, data modeling, API flows, and hypermedia.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Design of Web APIs, Second Edition. The section links point to the parts of the book it draws on.