Hello,
Without a few more details it''s hard to say, so I''ll make some
assumptions:
* You have token based authentication.
* Your controllers and routes are already setup in a RESTful pattern.
* Serializing your models is not a big deal.
If these assumptions hold, all you need to is follow the pattern set
forth by the scaffold generators: depending on the format requested,
respond in kind with the serialization format you desire. If the
middle assumption does not hold, make an "/api/" namespace and define
new routes for your API.
--
Brian
On Mon, Nov 8, 2010 at 7:54 AM, Mike Disuza
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:> Hi,
> We have developed an application which is running fine.
> Our next step is to open our application services as the RESTFUL API for
> other applications.
>
> Can anyone tell me how could I proceed to this?
>
> Thanks,
> Mike
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.