restify
REST framework
Last updated 6 years ago by donutespresso .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install restify 
SYNC missed versions from official npm registry.

restify

Build Status Gitter chat Dependency Status devDependency Status bitHound Score

restify is a smallish framework, similar to express for building REST APIs. For full details, see http://restify.com

Join us on IRC at irc.freenode.net in the #restify channel for real-time chat and support. Or see the Google group.

Usage

Server

var restify = require('restify');

var server = restify.createServer({
  name: 'myapp',
  version: '1.0.0'
});
server.use(restify.acceptParser(server.acceptable));
server.use(restify.queryParser());
server.use(restify.bodyParser());

server.get('/echo/:name', function (req, res, next) {
  res.send(req.params);
  return next();
});

server.listen(8080, function () {
  console.log('%s listening at %s', server.name, server.url);
});

Client

var assert = require('assert');
var restify = require('restify');

var client = restify.createJsonClient({
  url: 'http://localhost:8080',
  version: '~1.0'
});

client.get('/echo/mark', function (err, req, res, obj) {
  assert.ifError(err);
  console.log('Server returned: %j', obj);
});

Note that in future versions of restify, the clients have moved to a separate restify-clients repository and npm package.

Installation

npm install restify

License

MIT (see "LICENSE" file).

Development

Bugs

See https://github.com/restify/node-restify/issues.

Release process

Here is how to cut a release for a new "$version"

  1. Update the version in "package.json" and change ## not yet released at the top of "CHANGES.md" to the following. In other words, add a section for the new release.

    ## not yet released
    
    (nothing yet)
    
    ## $version
    
  2. Ensure things are correct by running make versioncheck, then commit your change, with something like:

    git commit -am "$version"
    git push origin
    
  3. Run the following to tag and publish the release:

    make cutarelease
    

Current Tags

  • 9.1.0                                ...           9-latest (a year ago)
  • 5.0.0-beta-8.0                                ...           beta (8 years ago)
  • 11.1.0                                ...           latest (2 years ago)
  • 4.3.4                                ...           latest-4 (6 years ago)
  • 9.0.0-rc.3                                ...           next (3 years ago)

184 Versions

  • 9.1.0                                ...           a year ago
  • 11.1.0                                ...           2 years ago
  • 11.0.0                                ...           2 years ago
  • 10.0.0                                ...           2 years ago
  • 9.0.0                                ...           2 years ago
  • 9.0.0-rc.3                                ...           3 years ago
  • 9.0.0-rc.2                                ...           3 years ago
  • 9.0.0-rc.1                                ...           3 years ago
  • 8.6.1                                ...           3 years ago
  • 8.6.0                                ...           3 years ago
  • 8.5.1                                ...           5 years ago
  • 8.5.0                                ...           5 years ago
  • 8.4.1                                ...           5 years ago
  • 8.4.0                                ...           5 years ago
  • 8.3.3                                ...           5 years ago
  • 8.3.2                                ...           6 years ago
  • 8.3.1                                ...           6 years ago
  • 8.3.0                                ...           6 years ago
  • 8.2.0                                ...           6 years ago
  • 8.1.1                                ...           6 years ago
  • 8.1.0                                ...           6 years ago
  • 8.0.0                                ...           6 years ago
  • 7.7.0                                ...           6 years ago
  • 7.6.0                                ...           6 years ago
  • 7.5.0                                ...           6 years ago
  • 7.4.0                                ...           6 years ago
  • 7.3.0                                ...           6 years ago
  • 7.2.3                                ...           6 years ago
  • 7.2.2                                ...           6 years ago
  • 7.2.1                                ...           6 years ago
  • 4.3.4                                ...           6 years ago
  • 7.2.0                                ...           6 years ago
  • 7.1.2                                ...           7 years ago
  • 7.1.1                                ...           7 years ago
  • 4.3.3                                ...           7 years ago
  • 7.1.0                                ...           7 years ago
  • 7.0.0                                ...           7 years ago
  • 6.4.0                                ...           7 years ago
  • 4.3.2                                ...           7 years ago
  • 6.3.4                                ...           7 years ago
  • 6.3.3                                ...           7 years ago
  • 5.2.1                                ...           7 years ago
  • 6.3.2                                ...           7 years ago
  • 6.3.1                                ...           7 years ago
  • 6.3.0                                ...           7 years ago
  • 6.2.3                                ...           7 years ago
  • 6.2.2                                ...           7 years ago
  • 6.2.1                                ...           7 years ago
  • 6.2.0                                ...           7 years ago
  • 6.0.1                                ...           7 years ago
  • 6.0.0                                ...           7 years ago
  • 5.2.0                                ...           7 years ago
  • 5.1.0                                ...           7 years ago
  • 5.0.1                                ...           7 years ago
  • 4.3.1                                ...           7 years ago
  • 5.0.0                                ...           7 years ago
  • 5.0.0-beta-8.0                                ...           8 years ago
  • 5.0.0-beta-7.0                                ...           8 years ago
  • 5.0.0-beta-6.0                                ...           8 years ago
  • 5.0.0-beta-5.0                                ...           8 years ago
  • 5.0.0-beta-4.0                                ...           8 years ago
  • 5.0.0-beta-3.0                                ...           8 years ago
  • 4.3.0                                ...           8 years ago
  • 4.2.0                                ...           8 years ago
  • 5.0.0-beta-2                                ...           8 years ago
  • 5.0.0-beta-1                                ...           8 years ago
  • 4.1.1                                ...           8 years ago
  • 4.1.0                                ...           8 years ago
  • 4.0.4                                ...           9 years ago
  • 4.0.3                                ...           9 years ago
  • 4.0.2                                ...           9 years ago
  • 4.0.0                                ...           9 years ago
  • 3.0.3                                ...           9 years ago
  • 3.0.2                                ...           10 years ago
  • 3.0.1                                ...           10 years ago
  • 3.0.0                                ...           10 years ago
  • 2.8.5                                ...           10 years ago
  • 2.8.4                                ...           10 years ago
  • 2.8.3                                ...           10 years ago
  • 2.8.2                                ...           10 years ago
  • 2.8.1                                ...           10 years ago
  • 2.8.0                                ...           11 years ago
  • 2.7.0                                ...           11 years ago
  • 2.6.3                                ...           11 years ago
  • 2.6.2                                ...           11 years ago
  • 2.6.1                                ...           11 years ago
  • 2.6.0                                ...           11 years ago
  • 2.5.1                                ...           11 years ago
  • 2.5.0                                ...           12 years ago
  • 2.4.1                                ...           12 years ago
  • 2.4.0                                ...           12 years ago
  • 2.3.5                                ...           12 years ago
  • 2.3.4                                ...           12 years ago
  • 2.3.3                                ...           12 years ago
  • 2.3.2                                ...           12 years ago
  • 2.3.1                                ...           12 years ago
  • 2.3.0                                ...           12 years ago
  • 2.2.1                                ...           12 years ago
  • 2.2.0                                ...           12 years ago
  • 2.1.1                                ...           12 years ago
  • 2.1.0                                ...           12 years ago
  • 2.0.4                                ...           12 years ago
  • 2.0.3                                ...           12 years ago
  • 2.0.2                                ...           12 years ago
  • 2.0.1                                ...           12 years ago
  • 2.0.0                                ...           12 years ago
  • 1.4.4                                ...           12 years ago
  • 1.4.3                                ...           12 years ago
  • 1.4.2                                ...           13 years ago
  • 1.4.1                                ...           13 years ago
  • 1.4.0                                ...           13 years ago
  • 1.3.0                                ...           13 years ago
  • 1.2.0                                ...           13 years ago
  • 1.1.1                                ...           13 years ago
  • 1.1.0                                ...           13 years ago
  • 1.0.1                                ...           13 years ago
  • 1.0.0                                ...           13 years ago
  • 0.5.7                                ...           13 years ago
  • 1.0.0-1-rc2                                ...           13 years ago
  • 1.0.0-1-rc                                ...           13 years ago
  • 0.5.6                                ...           13 years ago
  • 0.5.5                                ...           13 years ago
  • 0.5.4                                ...           13 years ago
  • 0.5.3                                ...           13 years ago
  • 0.5.1                                ...           13 years ago
  • 0.5.0                                ...           13 years ago
  • 0.4.4                                ...           13 years ago
  • 0.4.3                                ...           13 years ago
  • 0.4.2                                ...           13 years ago
  • 0.4.1                                ...           13 years ago
  • 0.4.0                                ...           13 years ago
  • 0.3.15                                ...           13 years ago
  • 0.3.14                                ...           13 years ago
  • 0.3.12                                ...           13 years ago
  • 0.3.11                                ...           13 years ago
  • 0.3.10                                ...           13 years ago
  • 0.3.9                                ...           13 years ago
  • 0.3.8                                ...           13 years ago
  • 0.3.7                                ...           13 years ago
  • 0.3.6                                ...           13 years ago
  • 0.3.5                                ...           13 years ago
  • 0.3.4                                ...           13 years ago
  • 0.3.3                                ...           13 years ago
  • 0.3.2                                ...           13 years ago
  • 0.3.2-pre1                                ...           13 years ago
  • 0.3.1                                ...           13 years ago
  • 0.3.0                                ...           13 years ago
  • 0.2.13                                ...           13 years ago
  • 0.2.12                                ...           13 years ago
  • 0.2.11                                ...           13 years ago
  • 0.2.10                                ...           13 years ago
  • 0.2.9                                ...           13 years ago
  • 0.2.8                                ...           13 years ago
  • 0.2.7                                ...           13 years ago
  • 0.2.6                                ...           13 years ago
  • 0.2.5                                ...           13 years ago
  • 0.2.4                                ...           13 years ago
  • 0.2.3                                ...           13 years ago
  • 0.2.2                                ...           13 years ago
  • 0.2.1                                ...           13 years ago
  • 0.2.0                                ...           13 years ago
  • 0.1.23                                ...           13 years ago
  • 0.1.22                                ...           13 years ago
  • 0.1.21                                ...           13 years ago
  • 0.1.20                                ...           13 years ago
  • 0.1.19                                ...           13 years ago
  • 0.1.18                                ...           13 years ago
  • 0.1.17                                ...           13 years ago
  • 0.1.16                                ...           13 years ago
  • 0.1.15                                ...           13 years ago
  • 0.1.14                                ...           13 years ago
  • 0.1.13                                ...           13 years ago
  • 0.1.12                                ...           13 years ago
  • 0.1.11                                ...           13 years ago
  • 0.1.10                                ...           13 years ago
  • 0.1.9                                ...           13 years ago
  • 0.1.8                                ...           13 years ago
  • 0.1.7                                ...           13 years ago
  • 0.1.6                                ...           14 years ago
  • 0.1.5                                ...           14 years ago
  • 0.1.4                                ...           14 years ago
  • 0.1.2                                ...           14 years ago
  • 0.1.1                                ...           14 years ago
  • 0.1.0                                ...           14 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (20)
Dev Dependencies (7)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE