sails-google-discovery-doc
v0.10.8
Published
Generate a Google API Discovery Document for a Sails.js Application
Downloads
18
Maintainers
Readme
sails-google-discovery-doc
Generate a Google API Discovery Document for a Sails.js Application
Install
$ npm install sails-google-discovery-doc --save
var SailsDiscovery = require('sails-google-discovery-doc');
Usage
Start your app per usual:
$ sails lift
Then, in some controller or service somewhere:
var doc = SailsDiscovery.createRestDescription(sails);
That's it!
Reference
- npm: https://www.npmjs.org/package/sails-google-discovery-doc
- github: https://github.com/tjwebb/sails-google-discovery-doc
- License: MIT