Fandom & Pop Culture

Unfamiliar test data costs attention: every assertion needs you to remember what the record was supposed to contain. These APIs borrow worlds you already carry in your head, which leaves the whole of your attention for the part you are actually practising — the requests, the status codes and the headers.

The trade is deliberate. A mock API built on invoice line items makes you hold two unfamiliar things at once — the domain and the protocol — and the domain always wins, because it is the one you have to reason about to know whether the response was right. Borrowing a world you already know collapses that to one.

Start wherever the data is most familiar to you and work outward: list a collection, page through it, filter it, fetch one item, ask for one that does not exist. By the time the shape of the responses is boring, you are ready for the parts that are not — auth, conflicts, concurrency and the error codes each of these APIs is wired to produce on demand.

17 APIs in this category

Other categories

All 39 mock REST APIs · Testing techniques

Last updated