alt-compile-swagger
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.2 • Public • Published

alt-swagger-ui NPM version

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.

Readme

Keywords

none

Package Sidebar

Install

npm i alt-compile-swagger

Weekly Downloads

9

Version

1.0.0-alpha.2

License

MIT

Unpacked Size

10.4 kB

Total Files

12

Last publish

Collaborators

  • joni7777