Skip to content
Ameen Abozaid
Planned lessonJNR-019-L07

Demo: full CRUD for categories, live

  • Lesson 7 of 8
  • 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

build all five category operations end to end. Prepares JNR-019-LAB1.

Draft outline details

Step by step

  1. Create CategoryController with a record DTO for create and update, using the in-memory repository.
  2. Implement POST (201 plus Location) and GET by ID and list.
  3. Implement PUT and DELETE (204).
  4. Planned mistake: the GET for an unknown ID returns 200 with an empty body. Fix: throw a not-found error so the client gets 404.
  5. Call every endpoint with curl -i, then add a @WebMvcTest for each.

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.

Continue to next lesson

Type to search levels, phases, modules and lessons.