Rails APIs

58 views
Skip to first unread message

Craig Read

unread,
May 20, 2013, 12:59:51 AM5/20/13
to rails-...@googlegroups.com
Hi Everyone,

Just wondering what people generally use to get data into and out-of a Rails app.
I'm currently using ActiveResource, but want to check out the 'competition'.

Cheers,

--
Craig Read

Rob Howard

unread,
May 20, 2013, 1:17:10 AM5/20/13
to rails-...@googlegroups.com
For getting data out, ActiveModel Serializers is nice (and easy to test):


For getting data in... I struggle with this every time. Either I use a client library for the service it's sucking data in from, or something wrapped around Faraday if one doesn't yet exist. I've had a look at Roar, but haven't used it in anger; does anyone have any experience with it?

- Rob



--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceani...@googlegroups.com.
To post to this group, send email to rails-...@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-oceania?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Fred Wu

unread,
May 20, 2013, 9:03:58 AM5/20/13
to rails-...@googlegroups.com

Craig Read

unread,
May 20, 2013, 11:50:39 PM5/20/13
to rails-...@googlegroups.com
Thanks Fred & Rob.

They (as well as grape) look great for creating the API on the server.

But I'm far more interested in exploring client-side alternatives to ActiveResource that can consume a Restful API.

Faraday looks interesting, but seems to require a lot more code than AR does.

Roar, on the other hand looks like it might be the sort of beast I need.
Would be interested to also hear if others have played with it.
I'll start having a look at it over the weekend.

Cheers,


--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceani...@googlegroups.com.
To post to this group, send email to rails-...@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-oceania?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Fred Wu

unread,
May 21, 2013, 9:29:27 PM5/21/13
to rails-...@googlegroups.com
RocketPants does have a client layer, just in case you didn't know already. :) It also transforms JSON responses into objects via your own rules (Transformers).
Reply all
Reply to author
Forward
0 new messages