rails-roar

Consuming REST API Rails

痴心易碎 提交于 2019-12-11 05:39:43
问题 I've looked at this question but it's quite old and I feel there's now other alternatives to ARes. Given that many people seem to think that ActiveResource is kind of outdated and heavyweight, I've looked at Api Smith, Her, Roar and of course ARes. Which one of these gems would be the most reliable, and future proof alternative? 回答1: Why not using lower level libraries like HTTParty or Faraday ? They will cover a lot of the ugly stuff for you (ssl, parsing/serializing jsons and XMLs, logging,