← Track projects
Track project · 11

Complete the Production Tasks API

Build CRUD, validation, error semantics, business rules, filtering, search, stable sorting, and pagination as one coherent API.

Definition of done

What you are building

Deliverables

Build plan

Work through it one observable step at a time

  1. 01

    Implement POST and define its request/response schema.

  2. 02

    Implement collection GET with deterministic sorting.

  3. 03

    Implement GET by id with deliberate 404 behavior.

  4. 04

    Implement PATCH and keep patch semantics distinct from replacement.

  5. 05

    Implement DELETE using the product’s chosen delete semantics.

  6. 06

    Validate untrusted payloads with Zod and shape validation failures consistently.

  7. 07

    Add one business invariant in the service layer and one database constraint where appropriate.

  8. 08

    Add filtering/search and prove results with fixtures.

  9. 09

    Implement offset pagination, then cursor pagination with a stable tie-breaker.

  10. 10

    Write API contract tests for success and important failure paths.

Evidence

Do not rely on “it seems to work”

Evidence to collect

Project exit ticket

Close the project only when these are true

Completion