HTTP Warrior — API Silat post warrior: 22 levels assembling HTTP requests: method, headers, body, cache, ETag, CORS preflight, range and SSE, on a deterministic stub server.
Lessons this game drills HTTP Methods : The method is the verb of a request. GET fetches data (200). POST creates new data in the collection (/books, the address of all books) and is answered with…Request & Response : A request is made of a first line (method, path), headers, a blank line, then the body. A response has the same shape, but its first line holds the status…CRUD API : CRUD is the four operations on data: Create, Read, Update, Delete. Create: POST /books builds { ...req.body, id: nextId++ } (the client's body, with an id the…API Caching : API caching keeps copies of answers, so the server doesn't have to work on the next request again, or the request doesn't have to be sent. Cache-Control sets…HTTP Caching: Cache-Control, ETag, Validation : max-age=N in the Cache-Control header keeps a copy fresh (usable right away) for N seconds, and during that time the browser doesn't contact the server. After…Furniture API : Write Mebel Darsono's API on real Hono and Postgres: pages, N+1, rate limits, webhooks, OpenAPI.HTTP Inspector : Inspect HTTP requests: 12 levels of method, URL, headers, status and body. An HTTP anatomy game for learning API integration.Network Inspector : Open the Network tab and find the broken request, and why: 6 levels of network debugging with HTTP status codes, CORS and DevTools.HTTP Mechanic : Type real HTTP requests to a REST server and see the status code and JSON: 18 levels of HTTP methods, status codes and REST semantics.