alt-compile-swagger
v1.0.0-alpha.2
Published
Compile swagger docs to custom languages sdk
Downloads
1
Readme
alt-swagger-ui
Serve swagger-ui with express.js
Install
Install with npm
$ npm i alt-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
});
import * as express from 'express';
const app = express();
import initializeExpressUi from 'express-swagger-ui';
initializeExpressUi({
app : app,
swaggerRelativeUrl: '/swagger.json', // this is the default value
swaggerFilePath : '/explorer' // this is the default value
});
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.