API Documentation with Swagger/OpenAPI
OpenAPI (formerly Swagger) is the industry standard for describing REST APIs. The springdoc-openapi library auto-generates an OpenAPI 3.0 JSON/YAML specification from your Spring MVC controllers and serves an interactive Swagger UI at /swagger-ui.html — with zero configuration. Annotations let you enrich the generated docs with descriptions, examples, and security schemes.