Forum: Ruby on Rails A few web services questions

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
7f38b0730b4ec046dde96341236fcc5f?d=identicon&s=25 Eric A. (xmg-eric)
on 2007-07-21 22:39
Hey All,

I'm currently in the process of building an API for a very large Rails
project, which will mostly to be used by users to create software,
widgets, etc... i'm just a bit lost and confused about what where to go
with it.

I've started building a XML-RPC/SOAP service by using ActionWebService,
and built a little section for users to generate an API key (used for
api authentication) in order to access the API.

Now, thats all going fine, however, for example, Flickr's REST API seems
to be widly popular, and i've noticed almost all Flickr widgets and
software use their REST service.

However, the REST services available in rails seems quite different than
Flickr's REST, as the rails approach makes you put the REST response in
with the actual function, requiring different URLS depending on what
controller's REST service your trying to access. While Flickr's REST is
located at a static URL (, or whatever) and
then accepts specific method names to call a specific function.

I find the latter seems to make more sense, it may not be very CRUD but
it's less confusing to be able to separate it like you do with
ActionWebService from your actual application when working with such a
large application. Can this be done in Rails?

I may have it all wrong, but there is minimal documentation on this
particular area of APIs and web services in rails and any help would be
much appreciated.

This topic is locked and can not be replied to.