Anatomy of a request
GET /api/skills/42 HTTP/1.1
Host: miraatdweb.com
Accept: application/json
Authorization: Bearer eyJ…
Anatomy of a response
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: max-age=60
{ "id": 42, "title": "…" }
Key concepts
- Methods: GET (read), POST (create), PUT/PATCH (update), DELETE (delete).
- Status codes: 2xx ok, 3xx redirect, 4xx client error, 5xx server error.
- Headers: metadata (auth, content-type, cache).
- Stateless: each request is independent; state is kept via cookies/tokens.