Track project · 08
Ship the First Frontend-to-API Vertical Slice
Connect the web app to the API and use browser/network evidence to understand the complete HTTP exchange.
Definition of done
What you are building
Deliverables
Build plan
Work through it one observable step at a time
- 01
Write the request and response contract before writing fetch code.
- 02
Call `GET /tasks` from the web application and inspect URL, method, headers, status, timing, and JSON.
- 03
Add `POST /tasks` and return 201 with the created resource.
- 04
Send malformed input and verify the chosen 4xx response.
- 05
Force a server failure and distinguish 5xx behavior from client errors.
- 06
Run frontend/API on different origins and configure the narrow CORS policy needed for development.
- 07
Compare cookie and bearer-token request shapes without treating either as authorization by itself.
- 08
Document the final API contract with examples.
Evidence
Do not rely on “it seems to work”
Evidence to collect
Project exit ticket