Restivus

REST APIs for the rest of us.

Description

Restivus makes it easy to expose a CSV file as a fully-documented REST API.

Installation

gem "restivus", "~> 0.0.1" or gem install restivus

Usage

The Restivus class inherits from Sinatra::Base. A Restivus app can be just a few lines of code:

require 'restivus'

class Bank < Restivus
  pk "Bank_Name"     # defaults to "id"
  csv "banklist.csv" # from http://www.fdic.gov/bank/individual/failed/banklist.csv
end

Bank.run!

This example is running live here.

Contributing to Restivus

Copyright © 2012 Alan deLevie. See LICENSE.txt for further details.