spring-boot-openapi-documentation

Generate OpenAPI 3.0 specs and Swagger UI for Spring Boot 3.x REST APIs.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/rizaldiem/digital-invitation-web_V2 --skill spring-boot-openapi-documentation-rizaldiem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spring-boot-openapi-documentation
Source: https://github.com/rizaldiem/digital-invitation-web_V2/tree/main/.windsurf/skills/spring-boot-openapi-documentation
Command: npx skills add https://github.com/rizaldiem/digital-invitation-web_V2 --skill spring-boot-openapi-documentation-rizaldiem

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Many Spring Boot APIs lack consistent, discoverable, and testable API documentation which makes integration, testing, and client generation error-prone and slow. This Skill provides patterns and configuration to produce clear OpenAPI 3.0 specifications and an interactive Swagger UI so teams can explore, validate, and consume REST endpoints reliably.

Core Features & Use Cases

  • Automatic OpenAPI generation for Spring Boot 3.x using SpringDoc with WebMvc and WebFlux support.
  • Controller and model annotation patterns to document operations, request/response schemas, validation constraints, and examples.
  • Security documentation for JWT, OAuth2, Basic Auth and API keys with global security scheme configuration and per-endpoint SecurityRequirement usage.
  • Advanced customization including grouped APIs, pagination parameter support, operation customizers, hiding internal endpoints, and build-time spec generation via Maven/Gradle plugins.
  • Use Case: Add SpringDoc to a microservice, annotate controllers and DTOs, configure package scanning and security schemes, then publish a stable OpenAPI JSON/YAML and Swagger UI for frontend and client SDK teams.

Quick Start

Add the springdoc starter dependency to your Spring Boot project, annotate controllers and DTOs with OpenAPI annotations, configure springdoc properties or an OpenAPI bean, then open the Swagger UI endpoint to verify the generated documentation.

Frequently Asked Questions about spring-boot-openapi-documentation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate OpenAPI 3.0 documentation for a Spring Boot 3.x REST API?

Generate OpenAPI 3.0 specifications for Spring Boot 3.x by adding the SpringDoc starter, annotating controllers and models, configuring springdoc properties, and accessing the Swagger UI endpoint to view the generated REST API docs.

Can I document JWT, OAuth2, and Basic Auth security schemes in Spring Boot Swagger UI?

Document JWT, OAuth2, and Basic Auth security schemes in Swagger UI by configuring global security schemes and applying per-endpoint SecurityRequirement annotations to your Spring Boot REST controllers.

Does SpringDoc OpenAPI support both WebMvc and WebFlux in Spring Boot projects?

SpringDoc OpenAPI supports both WebMvc and WebFlux frameworks in Spring Boot 3.x, enabling consistent annotation patterns to document reactive and traditional servlet-based REST APIs.

What is the best way to configure grouped APIs and hide internal endpoints in SpringDoc?

Configure grouped APIs and hide internal endpoints in SpringDoc using advanced customizations like operation customizers and package scanning properties to selectively expose specific REST endpoints.

How do I produce OpenAPI JSON or YAML at build time using Maven or Gradle?

Produce OpenAPI JSON or YAML at build time by integrating Maven or Gradle build plugins that generate artifact specifications, ensuring stable REST API documentation for client SDK teams.