Putting the hate in HATEOAS
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.rvmrc
Gemfile
Gemfile.lock
README.md
Rakefile
haterade.gemspec

README.md

Haterade

Putting the hate in HATEOAS. In other words, Haterade is a library that makes it easy to interact with RESTful web services, at least those RESTful web services that are actually written correctly.

Introduction

So most frameworks that claim to be RESTful aren't really so. This is a shame, because when you take the time to understand Fielding's dissertation and the related standards, and then actually implement them, you get a lot of stuff for free.

By default we don't assign a meaning to error codes outside of their major number meaning. 1xx is information, 2xx is good, 3xx is redirection, 4xx is client error, 5xx is server error.

You need to specify a starting point and then the relationships you want to follow, and let Haterade do the rest.

sess = Haterade::Session.new("http://www.example.com/", :rel1, :rel2, :rel3) result = sess.run!

Links and link relations

Web Linking

Link specifications in HTML, XML and JSON

Common relationships