drf-yasg/drf_swagger/static/drf-swagger/swagger-ui-dist
Cristi Vîjdea ed02e3c3a1 Initial implementation as coreapi wrapper
* schema generation implemented via coreapi Document and openapi_codec
* schema interface selectable from the latest versions of swagger-ui and redoc
* feature parity with django-rest-swagger 2
2017-11-30 04:23:56 +01:00
..
.npmignore Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
README.md Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
absolute-path.js Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
favicon-16x16.png Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
favicon-32x32.png Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
index.js Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
oauth2-redirect.html Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
package.json Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
swagger-ui-bundle.js Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
swagger-ui-bundle.js.map Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
swagger-ui-standalone-preset.js Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
swagger-ui-standalone-preset.js.map Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
swagger-ui.css Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
swagger-ui.css.map Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
swagger-ui.js Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00
swagger-ui.js.map Initial implementation as coreapi wrapper 2017-11-30 04:23:56 +01:00

README.md

Swagger UI Dist

NPM version

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.