No commit activity in last 3 years
No release in over 3 years
Provides a DSL for making RESTful Sinatra actions with MongoMapper models.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
 Project Readme

About

With rest-sinatra, success is all but guaranteed in writing RESTful Web Services. (Provided that you are using a Sinatra + MongoMapper stack.)

Installation

It might not be a bad idea to make sure you are running the latest RubyGems:

sudo gem update --system

I recommend a user-level install (no sudo needed):

gem install djsun-rest-sinatra

Note: in general, beware of sudo gem install <project_name> -- it gives elevated privileges. Do you trust <project name>? Better to be safe and use a local install to ~/.gem.

Usage

For a basic example of what this looks like when integrated into a real-world Sinatra app, see sources.rb. For an example of nested resources, see users.rb and users_keys.rb.

History

This code was extracted from the National Data Catalog, a project of the Sunlight Labs.