node-swagger-ui

1.0.13 • Public • Published

node

Usage:

var express = require('express'), swagger = require('node-swagger-ui');

process.env.NODE_ENV = process.env.NODE_ENV || "DEV";

swagger(express()).configure({ ip: undefined, port: process.env.PORT || 8001, headers: { "Access-Control-Allow-Origin": "", "Access-Control-Allow-Headers": "Origin, X-Requested-With, Content-Type, Accept, Authorization" }, models: [ '/docs/models/.js' ], apis: [ '/docs/apis/*.js' ], swagger: { title: "Title Swagger", description: "Swagger Sample Application", termsOfServiceUrl: "", contact: "ftheomunhoz@gmail.com", swaggerDoc: "api-docs", url: "/docs", version: "1.0.0" } }).start();

Readme

Keywords

Package Sidebar

Install

npm i node-swagger-ui

Weekly Downloads

1

Version

1.0.13

License

MIT

Last publish

Collaborators

  • americoneto1
  • ftheomunhoz