0.5.1 • Published 7 years ago
sails-swagger v0.5.1
swagger
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.
This package was last updated in 2015. For the most up-to-date information on auth and permissions in Sails, visit the official Sails website.
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://balderdash.io'
}
};
License
MIT