Hi All,
I want to develop the webservice in Ruby that will support the REST API
calls.
Can anybody please suggest how to write such a service?
Regards,
Shubhada
Hi All,
I want to develop the webservice in Ruby that will support the REST API
calls.
Can anybody please suggest how to write such a service?
Regards,
Shubhada
I would suggest you install the Sinatra gem, and read the
documentation attached to it. http://www.sinatrarb.com/
On Fri, Jul 5, 2013 at 12:03 PM, Matthew K.
[email protected]wrote:
I would suggest you install the Sinatra gem, and read the
documentation attached to it. http://www.sinatrarb.com/
Alternatively Webrick which is part of the standard library can be used
to
create HTTP services (including REST) more manually.
Kind regards
robert
Robert K. wrote in post #1114499:
On Fri, Jul 5, 2013 at 12:03 PM, Matthew K.
[email protected]wrote:I would suggest you install the Sinatra gem, and read the
documentation attached to it. http://www.sinatrarb.com/Alternatively Webrick which is part of the standard library can be used
to
create HTTP services (including REST) more manually.Kind regards
robert
Are there any limitations with Webrick? or we can use it for any kind of
REST API request?
Is there any good tutorial for Webrick usage?
Regards,
Shubhada
On Mon, Jul 8, 2013 at 7:42 AM, Shubhada S. [email protected]
wrote:
create HTTP services (including REST) more manually.
Are there any limitations with Webrick? or we can use it for any kind of
REST API request?
Is there any good tutorial for Webrick usage?
robert
Robert K. wrote in post #1114704:
On Mon, Jul 8, 2013 at 7:42 AM, Shubhada S. [email protected]
wrote:create HTTP services (including REST) more manually.
Are there any limitations with Webrick? or we can use it for any kind of
REST API request?
Is there any good tutorial for Webrick usage?webrick tutorial at DuckDuckGo
robert
Webrick is build in easy to use application server.
I read on the web, Webrick is good for development but not for
production. It has some known memory issues and HTTP parsing problems
also. So,
Regards,
Shubhada
On Tue, Jul 9, 2013 at 4:57 PM, Shubhada S. [email protected]
wrote:
- The application
- Tomcat apache server
- Webrick (I am not sure about it… but I guess this would be required
to serve the REST requests.)- phusion passenger OR JRuby OR Sinatra (This is also I am not sure
about. But, for communication between Tomcat and our framework in ruby.)Can anybody help me out to figure it out? Is more explanation is
required to understand the problem?
If you use Sinatra or Webrick there really seems to be no point in
having
Tomcat in between. That just gives you one more step with latency. If
your application is running on JRuby the situation is different: you may
be
able to have JRuby and Tomcat run in the same JVM and communicate via
function / method calls.
Cheers
robert
Hi,
Basically we want to make our application to be supported with REST
APIs.
We will receive the REST requests to Tomcat application server. And from
there we need to forward it to our application in ruby.
So I want to understand that what the exact things I will need to have
to complete this setup for REST communication. Few things I have listed
down.
Can anybody help me out to figure it out? Is more explanation is
required to understand the problem?
Regards,
Shubhada
I’m going to go out on a limb and make a crazy suggestion: Rails
Thanks Robert.
It is sure that there is Tomcat server. So I will not use Sinatra or
Webrick. Also my application is pure Ruby based application.
So what is preferable in this case?
Also, when phusion passenger is used?
Regards,
Shubhada
Tony A. wrote in post #1114894:
I’m going to go out on a limb and make a crazy suggestion: Rails
Do u mean tomcat Apache+ rails+ ruby?
Can be rails integrated with tomcat?
Regards
Shubhada
+1 for Rails.
With jRuby, yes, tomcat (or any container) should work fine. Check out
warbler.
On Tue, Jul 9, 2013 at 9:29 PM, Prasad P. [email protected] wrote:
I am still confused when to use phusion passenger and when to use rails?
They’re orthogonal. Phusion Passenger is an Apache/nginx module which
manages Ruby web applications in a somewhat framework-agnostic manner.
Rails is a framework for building web applications. You can use Phusion
Passenger to serve Rails applications from Apache/nginx.
I am still confused when to use phusion passenger and when to use rails?
Hi,
Thank you all for your inputs.
I have a different track now. What is difference between CGI based web
applications and phusion passenger/ sinatra based web applications?
What could be the best option for REST implementation?
Regards,
Shubhada
On Mon, Jul 15, 2013 at 4:14 PM, Shubhada S. [email protected]
wrote:
I have a different track now. What is difference between CGI based
applications and phusion passenger/ sinatra based web applications?
Please start a new thread for that. See also
http://www.msamir.net/tutorial/smart-questions.htm
Regards
robert
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs