liveBook · Manning

Prototyping

As explained in The Design of Web APIs, Second Edition

A prototype is an early, incomplete implementation used to explore or validate a system's behavior or design.

An implementation prototype is an early, evolving API implementation used during design to test whether proposed behavior serves stakeholder and consumer needs. section 19.1.2 section 19.6.2

Choose a simulation that fits the design question:

  • A basic mock can expose static data from an OpenAPI document when simple simulation is enough. section 19.6
  • For more realistic design-time behavior, favor an early prototype over a heavily configured, scripted mock; add logic as the design develops. section 19.6.2
  • Reserve complete mocks for later development or demo use rather than reproducing every possible behavior during design. section 19.6.2

Evolving a prototype

Start with a basic skeleton that returns static data generated from the OpenAPI document. As the design is refined, add logic; after finalizing the design, continue implementation with the remaining code. section 19.6.2

How The Design of Web APIs, Second Edition covers it

How deep it goes
Develops a basic static-data skeleton toward added logic, while deferring complete mock behavior until later when needed.
Examples
Starts with static data generated from OpenAPI, then adds logic as the design is refined.
What it assumes
Starts from input needs, an API Capabilities Canvas, an OpenAPI document, and API design guidelines.
What you can do after
Evaluate an API design with stakeholders and consumers by interacting with a simulation and refining prototype behavior.
How it connects
Connects prototypes to API design, OpenAPI documents, API mocks, and consumer prototyping.

Also explained in

Compare how 9 books explain prototyping →

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.