composure
Inspired by Swagger for Scala, composure is built on top of restify and provides a clean api for defining RESTful web service apis. At the same time, composure provides the ability to document your services along side the endpoint definitions and hadlers, and creates a documentation website.
Example
var composure = ; var app = ; var echoService = appname"Hello, World!"version"1.0.0"; var { res; ;}; var endpoint = echoService version"1.0.0" description"<p>This is a very long description that might be multi-lined.</p>" + "<p>Use html if you want. It will get escaped out of the summery</p>"; endpoint;endpoint; endpoint = echoService version"1.0.0" description"<p>This is a very long description that might be multi-lined.</p>" + "<p>Use html if you want. It will get escaped out of the summery</p>"; endpoint;endpoint; app;
Screenshot
Todos
- Make the autogen documentation page prettier
- Expose the restify jsonClient
- Documentation
- Test cases