Skip to content

foxifyjs/foxify-swaggerize-ui

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

foxify-swaggerize-ui

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

Installation

npm i foxify-swaggerize-ui

Usage

const Foxify   = require('foxify');
const app       = new Foxify();
const swaggerUi = require('foxify-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

foxify-swagger-generator

About

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

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 93.2%
  • JavaScript 6.8%