Nickelback Plays Music

    foxify-swaggerize-ui

    1.0.0 • Public • Published

    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

    Install

    npm i foxify-swaggerize-ui

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    12.7 MB

    Total Files

    15

    Last publish

    Collaborators

    • ardalanamini