JSPM

custom-swagger-ui-express

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q17596F
  • License MIT

custom swagger ui

Package Exports

  • custom-swagger-ui-express

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (custom-swagger-ui-express) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Custom Swagger UI express

Installation

npm i custom-swagger-ui-express -S

Usage

const app = express();
const swaggerUI = require('express-swagger-generator');
swaggerUI(app, {
    route: options.route,
    layer: 3,
    filter: {
        common: ['_id'],
        route: {}, // for example: {'/xx/xx':['_id']}
    }
});