0PricingLogin
Spring Boot 4 Microservices & REST APIs · Lesson

Adding SpringDoc to Your Project

Generate OpenAPI docs automatically.

Why document your API?

An API without docs is hard to consume. OpenAPI (formerly Swagger) is a standard, machine-readable description of your REST API that powers interactive docs, client generation and contract testing.

What SpringDoc does

SpringDoc OpenAPI inspects your Spring controllers at runtime and generates the OpenAPI spec automatically - no hand-written YAML needed.

  • Reads your @RestController mappings
  • Serves the spec and a Swagger UI

All lessons in this course

  1. Adding SpringDoc to Your Project
  2. Documenting Endpoints and Models
  3. Customizing the OpenAPI Spec
  4. Swagger UI
← Back to Spring Boot 4 Microservices & REST APIs