swagger-ui-dist

undefined

Swagger UI Dist

API

This module, swagger-ui-dist, exposes Swagger-UI's entire dist folder as a dependency-free npm module. Use swagger-uiinstead, if you'd like to have npm install dependencies for you.

SwaggerUIBundleand SwaggerUIStandalonePresetcan be imported:

import { SwaggerUIBundle, SwaggerUIStandalonePreset } from "swagger-ui-dist"

To get an absolute path to this directory for static file serving, use the exported getAbsoluteFSPathmethod:

const swaggerUiAssetPath = require("swagger-ui-dist").getAbsoluteFSPath()

// then instantiate server that serves files from the swaggerUiAssetPath

For anything else, check the Swagger-UIrepository.

Repository

https@github.com:swagger-api/swagger-ui


上一篇:swagger-watcher
下一篇:stonehenge-git-repo

相关推荐

官方社区

扫码加入 JavaScript 社区