Anatomia di una richiesta
GET /api/skills/42 HTTP/1.1
Host: miraatdweb.com
Accept: application/json
Authorization: Bearer eyJ…
Anatomia di una risposta
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: max-age=60
{ "id": 42, "title": "…" }
Concetti chiave
- Metodi: GET (leggi), POST (crea), PUT/PATCH (aggiorna), DELETE (cancella).
- Status code: 2xx ok, 3xx redirect, 4xx errore client, 5xx errore server.
- Header: metadati (auth, content-type, cache).
- Stateless: ogni richiesta è autonoma; lo stato lo tieni con cookie/token.