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

CodeSignal

Products API: CRUD, Search, and Pagination

via CodeSignal

Overview

Expand the catalog API into a full CRUD surface: create products, fetch them by ID, update fields safely, and archive records. You'll also practice mapping validation failures and conflicts to correct HTTP status codes.

Syllabus

  • Unit 1: Building Products API
    • Inspect the products collection endpoint
    • Implement GET list and search
    • Implement POST create product
    • Handle Duplicate SKUs with 409 Conflict
  • Unit 2: Fetching Product By ID
    • Inspect fetching a product by id
    • Fetch product by id with basic errors
    • Return service errors consistently
    • Add resilience to GET by id
  • Unit 3: Updating and Archiving Products
    • Inspect update and archive endpoints
    • Validate PATCH body with parseJson + service validation
    • Persist updates via updateProductService
    • Archive products with DELETE

Reviews

Start your review of Products API: CRUD, Search, and Pagination

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.