Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Resource Oriented Architecture (REST) for Sinatra and MongoMapper

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 notes
Octocat-spinner-32 spec
Octocat-spinner-32 tasks Version 0.1
Octocat-spinner-32 .document Initial commit to sinatra_resource.
Octocat-spinner-32 .gitignore Version 0.1
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.mdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 sinatra_resource.gemspec
README.mdown

About

Want to build Web services in the Resource Oriented Architecture style? With resource_sinatra, success is all but guaranteed, 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

You will need gemcutter if you don't have it already:

gem install gemcutter
gem tumble

I recommend a user-level install:

gem install resource_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 /examples/datacatalog.

History

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

Something went wrong with that request. Please try again.