[LRUG] Querying APIs

Mike Kelly mikekelly321 at gmail.com
Fri Nov 23 06:32:35 PST 2012


Hi Tom,

Following the OpenSearch[1] conventions and/or using the media type
itself in the API is probably a good direction to go down.

I'm not sure about ruby/rails library support for that though.

Cheers,
M

[1] http://www.opensearch.org/

On Fri, Nov 23, 2012 at 1:57 PM, Tom Blomfield <tom at gocardless.com> wrote:
> I'm currently playing with the new(ish) Rails-API Project -
> https://github.com/rails-api
>
> I'm using it to build internal services - I'm currently wondering if there's
> a best practice for taking querystring params and mapping them to an
> ActiveRecord query.
>
> Obviously, it's possible to build a "Searchable" module/class, but I
> wondered if anyone has already solved this problem?
>
> Eg, pagingation, querying on date-ranges, ordering, filtering etc.
>
> Thanks!
>
> Tom
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>



-- 
Mike

http://twitter.com/mikekelly85
http://github.com/mikekelly
http://linkedin.com/in/mikekelly123



More information about the Chat mailing list