restr
Get Version
0.5.0Copyright © 2008 Urbacon Ltd.
What is it?
Restr is a very simple client for RESTful web services.
It was developed as a lightweight alternative to ActiveResource.
For project info and downloads please see the Restr’s
RubyForge Page
Installing
sudo gem install restr
Usage Example
Fetch Kitten with id 1 and print out its name and colour:
require 'restr' kitten = Restr.get('http://example.com/kittens/1.xml') puts kitten['name'] puts kitten['colour']
Change the Kitten’s colour and store the modification:
kitten['colour'] = 'black' kitten = Restr.put('http://example.com/kittens/1.xml', kitten)
Further Resources
- Full API Documentation RDocs
- Reststop — makes it easy to implement RESTful controllers in the Camping microframework
- Wikipedia Article on REST
How to submit patches
- See below for author’s contact info.
- The trunk repository is
svn://rubyforge.org/var/svn/restr/trunk
for anonymous access.
License
Contact
Matt Zukowski, 20th October 2008
Theme extended from Paul Battley