Skip to content

Latest commit

 

History

5,845 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

springdoc-openapi

📘 OpenAPI 3 documentation, Swagger UI and Scalar for Spring Boot, generated from your code

Build Maven Central License GitHub stars Stack Overflow

Spring Boot 4 Java 17+ OpenAPI 3.0 and 3.1 Swagger UI Scalar

📖 Documentation · 🚀 Getting started · ⚙️ Properties · 🎮 Demos · ❓ FAQ · 📝 Changelog

💖 Sponsored by

Mercedes-Benz    dmTECH    Contrast Security    LVM Versicherung    GDNext

Sponsor on GitHub Support on Open Collective

If you ❤️ springdoc-openapi, become a sponsor: it covers the project expenses and helps it grow.


springdoc-openapi examines your Spring Boot application at runtime, its controllers, configuration, validation constraints and annotations, and serves an OpenAPI 3 description in JSON and YAML, together with an interactive Swagger UI or Scalar page. Add one dependency: there is nothing to configure. ✨

Swagger UI generated by springdoc-openapi

🚀 Getting started

For a Spring Boot 4 web application (Java 17+):

<dependency>
  <groupId>org.springdoc</groupId>
  <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  <version>3.2.0</version>
</dependency>

Then open 👉 http://localhost:8080/swagger-ui.html. The OpenAPI description is served at /v3/api-docs (and /v3/api-docs.yaml).

Using WebFlux, Scalar, or only the API description? Pick another starter in the getting started guide.

🧭 Compatibility

Spring Boot springdoc-openapi Documentation
🍃 4.x 3.x (this branch) springdoc.org
🍃 3.x 2.x (spring-boot-3 branch) springdoc.org/v2
🍂 2.x and 1.x 1.8.0 (end of open-source support) springdoc.org/v1

✨ Modules and features

🎮 Demos

Try the live demos, for Web MVC, WebFlux, Scalar, Spring Cloud and MCP. Their source code is in springdoc-openapi-demos.

💬 Getting help

Note

springdoc-openapi is a community project, not maintained by the Spring team.

🤝 Contributing

Contributions are welcome! See CONTRIBUTING.adoc and the Code of Conduct.

Thanks to all our contributors 🙏

Contributors

Special thanks to the Spring team and JetBrains for their support.

JetBrains logo

📄 License

springdoc-openapi is Open Source software released under the Apache 2.0 license.