RESTful APIs — simply explained
← → arrow keys
🧑‍💻
Client
Your app — needs data
HTTP request / response
🗄️
Server
Has the data — sends it back
🧑‍💻
Client
Request
Response
🗄️
Server
The Request — an HTTP URL
GET https://api.example.com/users/42
Method
Protocol
Host
Resource
← The Response — JSON data
200 OK
{ "id": 42, "name": "Alice", "role": "engineer" }
GET
Read
Fetch data without changing anything
POST
Create
Add something new
PUT
Update
Change something that already exists
DELETE
Remove
Delete something