API-first
API-first is an approach that defines a solution's interfaces and contracts as a central part of its design
What it means, how it is used and where it comes up, with its related concepts.
What it is and how it works
It makes it easier to coordinate teams and consumers before the implementation is complete. It requires agreement on data, errors, permissions and evolution. Designing an API first does not remove the need to research the tasks and needs it must serve.
Topics
Where we work on it
Frequently asked questions about API-first
What should an API contract contain before it is built?
It should describe operations, data, validations and responses, including the errors the consumer needs to interpret. It also needs to explain authentication, compatibility and how changes will be introduced. A successful example does not cover the whole contract. Testing it with those who will use it helps detect ambiguities before implementing it, such as optional fields someone reads as required or states that do not show whether an operation can be repeated.
