rest_engine

rest_engine is a Rails 3 engine that provide your Rails application a restful API

Installation

In your Gemfile, add the following dependencies:

gem 'rest_engine'

Run:

$ bundle install

That’s it. It will provide a restful API for your models.

Usage

Start the server:

$ rails server

Let’s say you have a model Customer, you should now be able to access your customers:

It also support namespaced model. For example if your model is Product::Toy, then the url would be: http://localhost:3000/api/product/toys

Or, to see the available routes:

$ rake routes

Contributing to rest_engine

Copyright © 2011 Yehezkiel Syamsuhadi. See LICENSE.txt for further details.