System Design
10. API Design and ManagementAnimated
API Fundamentals
A contract that lets one program use another.
The idea
An API defines the operations, inputs, outputs and errors one system offers to another, hiding the internals.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- current message
- earlier
- failure or attack
A request names a method, a path and headers.
- step:
- 1/4
- from:
- Client
- to:
- Server
1/4
Time runs downward. Solid arrows are requests, dashed arrows are replies.
Step by step
- 1Define the operations
- 2Describe inputs and outputs
- 3Publish the contract
- 4Keep it stable
Where it is used
Every integration.
Watch out for
Changing an API breaks every client. Version carefully.