Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Handling Data with POST, PUT, PATCH and DELETE

via CodeSignal

Overview

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.

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

Reviews

Start your review of Handling Data with POST, PUT, PATCH and DELETE

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.