tree: 647284e456040a394e268394d0d678f35e378657 [path history] [tgz]
  1. css/
  2. fonts/
  3. images/
  4. lang/
  5. lib/
  6. absolute-path.js
  7. favicon-16x16.png
  8. favicon-32x32.png
  9. index.html
  10. index.js
  11. o2c.html
  12. oauth2-redirect.html
  13. package.json
  14. README.md
  15. swagger-ui-bundle.js
  16. swagger-ui-bundle.js.map
  17. swagger-ui-standalone-preset.js
  18. swagger-ui-standalone-preset.js.map
  19. swagger-ui.css
  20. swagger-ui.css.map
  21. swagger-ui.js
  22. swagger-ui.js.map
  23. swagger-ui.min.js
  24. swagger.json
docs/3.0.0-SNAPSHOT/rest-docs-archiva-ui/ui/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.