Expand your API's capabilities by learning to create, update, and delete data. You'll implement handlers for POST, PUT, PATCH and DELETE requests, work with request bodies, and build dynamic routes to manage individual resources.
Overview
Syllabus
- Unit 1: Creating Data with POST
- Explore User Creation and API Behavior
- Creating New Data with POST
- Send a POST Request from the Frontend
- Creating New Data with POST
- Unit 2: Fetching a Single User
- Explore the GET by ID Dynamic Route
- Fix the Broken GET by ID Handler
- Implement Frontend Fetch by User ID
- Fetching a Single User by ID with a Dynamic API Route
- Unit 3: Updating and Deleting Users
- Updating and Deleting Users with PUT and DELETE Handlers
- Complete the PUT and DELETE Route Logic
- Implement handleUpdate and handleDelete in the UI
- Implement PUT and DELETE in route.ts
- Unit 4: Partial Updates with PATCH
- Explore the PATCH Method in Action
- Supporting Partial Updates with PATCH
- Fix the PATCH Handler: Stop Acting Like PUT
- Implement the PATCH Handler from Scratch