CONNECT-REST - Exceptionally featureful Restful web services middleware for connect node.js
connect-rest - Exceptionally featureful Restful web services middleware for connect node.js
The library has a stunning feature list beyond basic rest functionality.
Just a few examples: (far from incomplete):
- execution branches: a single service can have multiple paths and handlers
- versioning: rest services can be versioned via many ways
- regular expressions: path description can be given using regular expression
- parameter mappings: path matchings can be bound as parameters
- proxy services: proxying incoming requests to a remote point passing parameters, headers as you request
- service discovery: built-in rest service allowing one to discover what rest services are available in general or for a given version
- "reflective" publishing: by providing a single object, its methods will be published as rest services automatically by simple logic
- dynamic API protection by Protectors
- Multiple contexts for flexible orchestrating
- customizable HTTP-layer management: HTTP status code, mime-types, headers, minifying can be set at service and execution level
- async services: a rest service can call back asynchronously when the answer is made
- multiple return format: handlers may return with strings, objects, streams and buffers, connect-rest will manage them adequately.