Skip to content
Proyek

springdoc/springdoc-openapi

Lihat di GitHub

Tentang

Pustaka untuk OpenAPI 3 dengan Spring Boot

Pengembangan web dan aplikasi

Cara angka ini diukur

Yang dapat Anda lakukan

  • ๐ŸŒ Spring Web MVC and Spring WebFlux, including functional endpoints
  • ๐Ÿ–ฅ๏ธ Swagger UI and Scalar user interfaces
  • ๐Ÿค– MCP support, to expose your API as tools for AI agents
  • ๐Ÿ” Spring Security and OAuth 2

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+2
dalam 15 hari
+2
dalam 1 bulan
+6

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

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 ๐Ÿ™

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.

Jelajahi proyek terkait

Memuatโ€ฆ