@coorpacademy/swagger-ui-express
Express middleware to ship swagger ui
Last updated 19 days ago by adriean.khisbe .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @coorpacademy/swagger-ui-express 
SYNC missed versions from official npm registry.

Swagger-ui-middleware

npm Build Status codecov License: MIT

Express Helper to ship swagger-ui explorer :world_map:

const express = require('express');
const createSwaggerUiMiddleware = require('@coorpacademy/swagger-ui-express');

const app = express();

app.use(
  createSwaggerUiMiddleware({
    swaggerDoc: require('./swagger.json'),
    apiDocs: '/api-docs',
    swaggerUi: '/explorer',
    indexPath: 'index.html'
  })
);

app.listen(8000);

Open http://localhost:8000/explorer

Current Tags

  • 2.0.1                                ...           latest (19 days ago)

4 Versions

  • 2.0.1                                ...           19 days ago
  • 2.0.0                                ...           19 days ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 24
Dependencies (2)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |