JSPM

express-swaggerize-ui

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3481
  • Score
    100M100P100Q9972F
  • License MIT

Express middleware to display a swagger-ui 3 page

Package Exports

  • express-swaggerize-ui

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 (express-swaggerize-ui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

express-swaggerize-ui

express-swaggerize-ui is an node express middleware to show swagger-ui 3 for your local (or external) api.

Installation

npm install --save express-swaggerize-ui

Usage

const express   = require('express');
const app       = express();
const swaggerUi = require('express-swaggerize-ui');

app.use('/api-docs.json', function (req, res) {
  res.json(require('./path/to/swaggerize/docs.json'));
});
app.use('/api-docs', swaggerUi());

app.listen(3000);

Generate swagger doc.json

express-swagger-generator