@coorpacademy/swagger-ui-express

2.0.5 • Public • Published

Swagger-ui-middleware

npm Build Status codecov License: MIT

Express Helper to ship swagger-ui explorer 🗺️

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

Readme

Keywords

none

Package Sidebar

Install

npm i @coorpacademy/swagger-ui-express

Weekly Downloads

15

Version

2.0.5

License

MIT

Unpacked Size

9.06 kB

Total Files

5

Last publish

Collaborators

  • huynguyen9898
  • yasmine.abdelkefi
  • wernerd
  • antonia.balluais
  • youssef.ezzahi
  • emeline75
  • ghazicoorpacademy
  • silou
  • coorpadmin
  • esa-coorp
  • adriean.khisbe
  • adamska27
  • audric-coorp
  • djamelsoualmi
  • stefanocoorp
  • emorana
  • dfazage