Swagger UI

Swagger UI 是 HTML、Javascript 和 CSS 资产的集合,可以从符合 Swagger 的 API 动态生成漂亮的文档。(Swagger UI is a collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.)

Github星跟踪图

NPM version
Build Status
npm audit
total GitHub contributors

monthly npm installs
total docker pulls
monthly packagist installs
gzip size

?? Want to score an easy open-source contribution? Check out our Good first issue label.

?️ Looking for the older version of Swagger UI? Refer to the 2.x branch.

This repository publishes to three different NPM modules:

  • swagger-ui is a traditional npm module intended for use in single-page applications that are capable of resolving dependencies (via Webpack, Browserify, etc).
  • swagger-ui-dist is a dependency-free module that includes everything you need to serve Swagger UI in a server-side project, or a single-page application that can't resolve npm module dependencies.
  • swagger-ui-react is Swagger UI packaged as a React component for use in React applications.

We strongly suggest that you use swagger-ui instead of swagger-ui-dist if you're building a single-page application, since swagger-ui-dist is significantly larger.

Compatibility

The OpenAPI Specification has undergone 5 revisions since initial creation in 2010. Compatibility between Swagger UI and the OpenAPI Specification is as follows:

Swagger UI Version

主要指标

概览
名称与所有者swagger-api/swagger-ui
主编程语言JavaScript
编程语言CSS (语言数: 6)
平台Docker, Linux, Mac, Windows
许可证Apache License 2.0
所有者活动
创建于2011-07-15 22:56:39
推送于2025-04-18 23:50:08
最后一次提交2025-04-13 19:37:38
发布数416
最新版本名称v5.21.0 (发布于 2025-04-13 19:37:46)
第一版名称v1.0 (发布于 2011-10-19 16:03:29)
用户参与
星数27.2k
关注者数643
派生数9.1k
提交数6.7k
已启用问题?
问题数5592
打开的问题数1184
拉请求数3249
打开的拉请求数98
关闭的拉请求数1083
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?