Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Shipping an API Other Teams Can Use

“The mobile team needs to read our data by next sprint.” Someone else always ends up talking to your data: a mobile app, a partner’s system, a front end built by another team. That means endpoints, request validation, consistent error responses, and documentation that does not go stale the moment the code changes. Writing all of that by hand for every resource is the repetitive work the PHP tooling exists to remove.

A service hatch in a wall. Behind it, a small elephant in front of shelves of labelled boxes hands a parcel through. In the queue, a smartphone, a laptop and a small robot. A board with a list of icons is pinned next to the hatch

The decision is how much you want generated for you, and how much you want to keep explicit.