|
пре 1 месец | |
---|---|---|
.. | ||
LICENSE | пре 1 месец | |
NOTICE | пре 1 месец | |
README.md | пре 1 месец | |
absolute-path.js | пре 1 месец | |
favicon-16x16.png | пре 1 месец | |
favicon-32x32.png | пре 1 месец | |
index.css | пре 1 месец | |
index.html | пре 1 месец | |
index.js | пре 1 месец | |
oauth2-redirect.html | пре 1 месец | |
package.json | пре 1 месец | |
swagger-initializer.js | пре 1 месец | |
swagger-ui-bundle.js | пре 1 месец | |
swagger-ui-bundle.js.map | пре 1 месец | |
swagger-ui-es-bundle-core.js | пре 1 месец | |
swagger-ui-es-bundle-core.js.map | пре 1 месец | |
swagger-ui-es-bundle.js | пре 1 месец | |
swagger-ui-es-bundle.js.map | пре 1 месец | |
swagger-ui-standalone-preset.js | пре 1 месец | |
swagger-ui-standalone-preset.js.map | пре 1 месец | |
swagger-ui.css | пре 1 месец | |
swagger-ui.css.map | пре 1 месец | |
swagger-ui.js | пре 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.