Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
|
|
11 mesi fa | |
|---|---|---|
| .. | ||
| README.md | 11 mesi fa | |
| absolute-path.js | 11 mesi fa | |
| favicon-16x16.png | 11 mesi fa | |
| favicon-32x32.png | 11 mesi fa | |
| index.html | 11 mesi fa | |
| index.js | 11 mesi fa | |
| oauth2-redirect.html | 11 mesi fa | |
| package.json | 11 mesi fa | |
| swagger-ui-bundle.js | 11 mesi fa | |
| swagger-ui-bundle.js.map | 11 mesi fa | |
| swagger-ui-standalone-preset.js | 11 mesi fa | |
| swagger-ui-standalone-preset.js.map | 11 mesi fa | |
| swagger-ui.css | 11 mesi fa | |
| swagger-ui.css.map | 11 mesi fa | |
| swagger-ui.js | 11 mesi fa | |
| swagger-ui.js.map | 11 mesi fa | |
README.md
Swagger UI Dist
API
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.