Case File: The Typed Handler
Write the first endpoints of a real API: a function from a standard Request to a standard Response. List the parcels, fetch one, answer 404 for a missing one, 405 for a wrong method and 404 for an unknown path, always as JSON. The checks send real Request objects through your function. Real TypeScript, generated for you alone.
Case File: The Typed Handler
Write the first endpoints of a real API: a function from a standard Request to a standard Response. List the parcels, fetch one, answer 404 for a missing one, 405 for a wrong method and 404 for an unknown path, always as JSON. The checks send real Request objects through your function. Real TypeScript, generated for you alone.
In this lesson:
- typescript
- api
- http
- request-response
- routing
- status-codes
- fetch-api
- case-file
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans