express-swagger-ui

0.1.0 • Public • Published

express-swagger-ui NPM version

Serve swagger-ui with express.js (without hacking node_modules/swagger-ui/dist/index.html)

Install

Install with npm

$ npm i express-swagger-ui --save

(optional) Install peer dependencies

npm i -S express swagger-ui

Usage

const express = require('express');
const app = express();
require('express-swagger-ui')({
  app       : app,
  swaggerUrl: '/swagger.json',  // this is the default value
  localPath : '/explorer'       // this is the default value
});

API

{%= apidocs("index.js") %}

Related projects

{%= related([]) %}

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Andreas Pizsa

License

Copyright © 2016 Andreas Pizsa Released under the MIT license.


This file was generated by verb-cli on April 06, 2016.

Package Sidebar

Install

npm i express-swagger-ui

Weekly Downloads

12

Version

0.1.0

License

MIT

Last publish

Collaborators

  • andreaspizsa