Skip to content
Ameen Abozaid
Planned lessonJNR-021-L05

Demo: from bare springdoc output to a usable API reference

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

improve generated docs until a newcomer can use them. Prepares JNR-021-LAB1.

Draft outline details

Step by step

  1. Open the bare Swagger UI: no descriptions, no examples, no errors.
  2. Add @Operation summaries and @Schema descriptions with examples on the DTOs.
  3. Document 400, 404, and 409 using the Problem Details shape.
  4. Planned mistake: the docs say 200 but the code returns 201 on create. Fix: correct the annotation and add a test that checks the status.
  5. Export the spec and commit it to the repository.
  6. Ask a colleague to call every endpoint using only Swagger UI.

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.