Fork me on GitHub

What Is It?

RESTful Routing for Express

img

xRest provides highly configurable, extensible support for RESTful resources in Express. By supplying just a few lines of code, you get intelligent, re-mappable request routing, support for multiple rendering formats (currently, HTML and JSON out of the box) and more.

Read more

Usage

Adding xRest To The Mix

img

Getting started with xRest is easy. It builds on what is already in Express, so you can add it to an existing application without changing existing code. Just declare a resource, implement handler functions for the RESTful HTTP requests you want to support, and mount the resource in your Express application.

Read more

Getting xRest

Quick Install Guide

img

The quickest way to get xRest is to install it via npm:

npm install xrest

Alternatively, you can download the source code, check out the source code from GitHub, or fork your own copy if you'd like to make changes or contribute fixes. See the Install section for more details.

Read more

License

Terms and Conditions

img

xRest is distributed under the MIT licence and is free for commercial and non-commercial use. The source code is available on GitHub. Feel free to fork it, and to send pull requests.

Read more