Skip to content

Express middleware to display a swagger-ui 3.x page

Notifications You must be signed in to change notification settings

gharibyan/express-swaggerize-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Express middleware to display a swagger-ui 3.x page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published