Expand your Remix 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 Users with POST
- Exploring User Creation and Retrieval via Users API Endpoints
- Implement User Creation Logic for POST /api/users Endpoint
- Implement User Creation POST Logic in handleCreate
- Implement loader and action for Remix /api/users endpoint
- Unit 2: Fetching a Single User
- Exploring Dynamic User API Routes in Remix
- Improve API User Loader
- Implement handleGetById Function to Fetch User by ID
- Dynamic User Route Handler Implementation
- Unit 3: Updating and Deleting Users
- User Update and Deletion API Exploration
- Implement Update and Delete Operations for Users API
- Complete Frontend PUT and DELETE User Handlers
- Implement PUT and DELETE Logic for Remix User API Route
- Unit 4: Partial Updates with PATCH
- Exploring Partial User Updates with PATCH Method
- Restrict User PATCH Updates to Allowed Fields
- Fix PATCH Handler to Merge Partial Fields into Existing User
- Implement PATCH Functionality for User API