swagger-doc
Document your express/restify rest api and expose to swagger ui.
Getting Started
Install the module with: npm install swagger-doc
Example
var restify = swagger = server = restify; // All configuration is optional. Only server is needed to add swagger routes.swagger; // Create a new swagger resource at specified route.docs = swagger; docsmodelsPayment = ...; // Documents an api, all options are same as in swagger.docs; // Another resourcevar docs = swagger; // Swagger-doc has express-like api.docs; docs; docs;
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Release History
(Nothing yet)
License
Copyright (c) 2012 Eirikur Nilsson
Licensed under the MIT license.