I’m building an API backend using Rails 4 and I’m struggling with finding a more elaborate way to do model queries straight from the URL than a mere ?name=Bob&age=43. What I’m after is some way to make AND, OR, LIKE etc operations straight from the URL query parameter.
Loopback on node.js has something similar:
I’ve been looking at using Arel, Squeel, sequel-rails and of course normal ActiveRecord but none of them seem to provide this kind of URL-to-ORM query mapping out of the box. Does anyone have any other pointers or ideas of how to make this happen?