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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?