Flexirest - The really flexible REST API client for Ruby
Flexirest - The really flexible REST API client for Ruby
Access your REST APIs in a flexible way.
Write your API classes in an ActiveRecord-style; like ActiveResource but Flexirest works where the resource naming doesn't follow Rails conventions, it has built-in caching and is much more flexible.
If you are a previous user of ActiveRestClient, there's some more information on why I created this fork and how to upgrade - but long story short, I wrote most of the code as a previous gem for a client, they agreed to open-source it, then it was abandoned and I relaunched it and now support it myself (and the owners of ActiveRestClient have acknowledged their gem is deprecated in favour of Flexirest).
Assuming you're using Bundler, to use Flexirest add this line to your application's Gemfile:
gem 'flexirest'And then execute:
$ bundleTo use it, let's create a new model class:
# app/models/person.rb
class Person something is output to the terminalThe general steps are the same as for almost all codebases on GitHub:
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)We have a guide written about Flexirest Internals if you want to know how it all hangs together. We also have lots of RSpec specifications, tested with Travis CI.
No open issues yet, or sync has not completed.