RESTful API

Resource-based, stateless

Why it exists

  • Simple and universal
  • Cache-friendly (GET is idempotent)
  • Standard HTTP verbs map to CRUD

Tradeoffs

  • Over-fetching (you get the whole resource)
  • Multiple requests for related data
GET /api/rest/users · POST /api/rest/users · GET /api/rest/users/:id

Request builder

Request flow

C
Client
request
API
REST API
read/write
B
Backend

Request

Send a request to see it here.

Response

Response will appear here.