Consuming non-REST APIs in Rails with ActiveResource
activeresource, http, rest, ruby, ruby-on-rails
Solution
I don't think there is a way to do this with ActiveResource, for these cases I just use Net::HTTP and Nokogiri
Problem
I'm writing a client that consumes a non-REST API (i.e. GET site.com/gettreasurehunts), which requires that I specify all parameters (even the resource ID) in the request's HTTP body as a custom XML document. I'd like to use Rails and ActiveResource, but I'd be forced to rewrite almost all of ActiveResource's methods. Is there another, more polished way of achieving the same result, even using another (Ruby) framework?