Fully featured REST server with Ruby?

Is it possible to create a fully functional REST server with Ruby (not Rails)?

+4
source share
5 answers

Yes.

You will need to fully implement everything else, and there is no good reason to do all the hard work when it is already done for you.

If you think Rails is too heavy for what you are doing, then Sinatra might be better for you.

+3
source

Yes, see Grape for a good example.

+8
source

Yes, use Sinatra.

http://www.sinatrarb.com/

+7
source

Yes, there are no restrictions. REST is an agnostic architectural style language. The language you have chosen to implement the interface does not affect the end result.

Of course, instead of starting from scratch, you can use the existing Ruby infrastructure, such as Sinatra . But if you want to completely control your request at a very low level, Rack alone is a good choice.

+1
source

of course, but I would recommend considering using a different web structure, for example. Sinatra , if you do not want to inflate your application with a full-featured Rails stack.

0
source

All Articles