sails-swagger-bk

0.5.3 • Public • Published

swagger

NPM version Build status Dependency Status Code Climate Sails Version

swagger.io (v2.0) hook for Sails. The application's models, controllers, and routes are aggregated and transformed into a Swagger Document. Supports the Swagger 2.0 specification.

Install

$ npm install sails-swagger --save

Configuration

// config/swagger.js
module.exports.swagger = {
  /**
   * require() the package.json file for your Sails app.
   */
  pkg: require('../package'),
  ui: {
    url: 'http://swagger.balderdash.io'
  }
};

Usage

After installing and configuring swagger, you can find the docs output on the /swagger/doc route.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.5.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.5.3
    0
  • 0.5.2
    0

Package Sidebar

Install

npm i sails-swagger-bk

Weekly Downloads

0

Version

0.5.3

License

MIT

Last publish

Collaborators

  • throll