Skip to main content
Curriculum

Phase 3

API Contracts, Validation, Errors, and Testing

Grow a working API into one that never breaks its consumers. Covers specifications, input validation, boundary values, error formats, status codes, testing, and compatibility.

Topics
9
topic groups
Ready
120
implemented tasks
Total
120
planned tasks
  1. 01Accept the required fields for `POST /memos` exactly as specifiedAuto grading / FeedbackSign in
  2. 02Don't save the out-of-spec field `isAdmin`Auto grading / FeedbackSign in
  3. 03Return `createdAt` as an ISO string as shown in the response exampleAuto grading / FeedbackSign in
  4. 04Wrap the detail response in `{ data }`Auto grading / FeedbackSign in
  5. 05Add `meta.total` to the list responseAuto grading / FeedbackSign in
  6. 06Restrict `status` to the spec-defined enum onlyAuto grading / FeedbackSign in
  7. 07Implement the contract that returns 400 for undefined fieldsAuto grading / FeedbackSign in
  8. 08Exclude `passwordHash` from the user creation responseAuto grading / FeedbackSign in
  9. 09Normalize an unspecified optional `description` to `null`Auto grading / FeedbackSign in
  10. 10Use the same DTO formatting function for list and detailAuto grading / FeedbackSign in
  11. 11Return `id` as a number as the contract requiresAuto grading / FeedbackSign in
  12. 12Align the memo API response with the Phase 3 contractAuto grading / FeedbackSign in