Skip to content

Lorune/mb-swagger-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mb-swagger-ui

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

Modified to support a basepath specification. Author did not respond to merge request for 5 months hence the fork.

Installation

npm install --save mb-swagger-ui

Usage

const express   = require('express');
const app       = express();
const swaggerUi = require('mb-swagger-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

mb-swagger-gen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published