|
|
1 年之前 | |
|---|---|---|
| .. | ||
| LICENSE | 1 年之前 | |
| NOTICE | 1 年之前 | |
| README.md | 1 年之前 | |
| absolute-path.js | 1 年之前 | |
| favicon-16x16.png | 1 年之前 | |
| favicon-32x32.png | 1 年之前 | |
| index.html | 1 年之前 | |
| index.j2 | 1 年之前 | |
| index.js | 1 年之前 | |
| oauth2-redirect.html | 1 年之前 | |
| package.json | 1 年之前 | |
| swagger-ui-bundle.js | 1 年之前 | |
| swagger-ui-bundle.js.LICENSE.txt | 1 年之前 | |
| swagger-ui-bundle.js.map | 1 年之前 | |
| swagger-ui-es-bundle-core.js | 1 年之前 | |
| swagger-ui-es-bundle-core.js.LICENSE.txt | 1 年之前 | |
| swagger-ui-es-bundle-core.js.map | 1 年之前 | |
| swagger-ui-es-bundle.js | 1 年之前 | |
| swagger-ui-es-bundle.js.LICENSE.txt | 1 年之前 | |
| swagger-ui-es-bundle.js.map | 1 年之前 | |
| swagger-ui-standalone-preset.js | 1 年之前 | |
| swagger-ui-standalone-preset.js.LICENSE.txt | 1 年之前 | |
| swagger-ui-standalone-preset.js.map | 1 年之前 | |
| swagger-ui.css | 1 年之前 | |
| swagger-ui.css.map | 1 年之前 | |
| swagger-ui.js | 1 年之前 | |
| swagger-ui.js.LICENSE.txt | 1 年之前 | |
| swagger-ui.js.map | 1 年之前 | |
This module, swagger-ui-dist, exposes Swagger-UI's entire dist folder as a dependency-free npm module.
Use swagger-ui instead, if you'd like to have npm install dependencies for you.
SwaggerUIBundle and SwaggerUIStandalonePreset can be imported:
import { SwaggerUIBundle, SwaggerUIStandalonePreset } from "swagger-ui-dist"
To get an absolute path to this directory for static file serving, use the exported getAbsoluteFSPath method:
const swaggerUiAssetPath = require("swagger-ui-dist").getAbsoluteFSPath()
// then instantiate server that serves files from the swaggerUiAssetPath
For anything else, check the Swagger-UI repository.