Skip to content
StackDecode
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.

ClientServerGET /index.html
  • 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

  1. 1Define the operations
  2. 2Describe inputs and outputs
  3. 3Publish the contract
  4. 4Keep it stable

Where it is used

Every integration.

Watch out for

Changing an API breaks every client. Version carefully.

Related