Skip to content
Ameen Abozaid
Planned lessonJNR-018-L06

Demo: designing the Shop API contract on a whiteboard

  • Lesson 6 of 6
  • Junior
On This Lesson 3 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

design products, categories, cart, and orders together. Prepares JNR-018-LAB1.

Draft outline details

Step by step

  1. List nouns from requirements: product, category, cart, cart item, order.
  2. Draw collections and sub-resources, then write one URL per use case.
  3. Fill a table: method, URL, success code, error codes.
  4. Planned mistake: add POST /addToCart and POST /placeOrder. Fix: POST /carts/{id}/items and POST /carts/{id}/checkout (or POST /orders).
  5. Write one example request and response per endpoint.
  6. Peer-review with the checklist: nouns, plural, status codes, no leaked database structure.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Type to search levels, phases, modules and lessons.