You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 7 години
12345678910111213141516171819202122
  1. # Swagger UI Dist
  2. [![NPM version](https://badge.fury.io/js/swagger-ui-dist.svg)](http://badge.fury.io/js/swagger-ui-dist)
  3. # API
  4. This module, `swagger-ui-dist`, exposes Swagger-UI's entire dist folder as a dependency-free npm module.
  5. Use `swagger-ui` instead, if you'd like to have npm install dependencies for you.
  6. `SwaggerUIBundle` and `SwaggerUIStandalonePreset` can be imported:
  7. ```javascript
  8. import { SwaggerUIBundle, SwaggerUIStandalonePreset } from "swagger-ui-dist"
  9. ```
  10. To get an absolute path to this directory for static file serving, use the exported `getAbsoluteFSPath` method:
  11. ```javascript
  12. const swaggerUiAssetPath = require("swagger-ui-dist").getAbsoluteFSPath()
  13. // then instantiate server that serves files from the swaggerUiAssetPath
  14. ```
  15. For anything else, check the [Swagger-UI](https://github.com/swagger-api/swagger-ui) repository.