API-first is a principle for the whole company, while design-first is a way of working in a single project. Under API-first, a team defines every API in a standard API description language before implementing it, and colleagues and future users review the draft early. The Zalando guidelines embed this principle, as does the 2022 architecture recommendation of the Swiss federal administration. Design-first puts it into practice in a project by writing the OpenAPI description before the code.
API design is the phase of API development in which a developer defines the rules, or contract, of the interface: resources and paths, methods, data formats, error messages, and versions. This contract binds both sides, the API provider and every system that uses it. Finished APIs are then managed and monitored with API management software.
Resources are the objects an API offers, such as orders, shipments, or inventory levels in the supply chain. For how a REST API uses resources, methods, and status codes, see our REST API basics.
For HTTP APIs, the OpenAPI Specification describes this contract in a standardized format. An OpenAPI document is a JSON object that can be written in the text formats JSON or YAML and is independent of programming languages.
Not every tool supports a new release right away, so before choosing a release, check carefully which version your existing tools can process.
