System Design
10. API Design and ManagementAnimated
OpenAPI Specification
A machine-readable description of REST APIs.
The idea
A YAML or JSON file describes endpoints and schemas, enabling docs, mock servers, validation and generated clients.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Every client request enters through the gateway.
- step:
- 1/4
- at:
- Client
1/9
The green dot is a request moving through the system.
Step by step
- 1Write the spec
- 2Generate docs and clients
- 3Validate requests against it
- 4Test with it
Where it is used
Contract-first development.
Watch out for
A spec nobody keeps updated is misleading.