M. Sahli
M. Sahli

Reputation: 43

Fully featured REST server with Ruby?

Is possible to create a fully-featured REST server with Ruby (not Rails)?

Upvotes: 4

Views: 8416

Answers (5)

RyanWilcox
RyanWilcox

Reputation: 13972

Yes, see Grape for a good example.

Upvotes: 8

thomasfedb
thomasfedb

Reputation: 5983

Yes.

You'll need to implement all the rest stuff yourself and there's no good reason to do all the hard work when it's already done for you.

If you think Rails is too heavy for what you're doing then maybe Sinatra would be better for you.

Upvotes: 3

Marian Theisen
Marian Theisen

Reputation: 6353

of course, but i'd recommend considering using another web framework, e.g. Sinatra if you don't want to bloat your app with a full featured Rails stack.

Upvotes: 0

Simone Carletti
Simone Carletti

Reputation: 176412

Yes, there are no limitations. REST is a language-agnostic architectural style. The language you choose to implement your interface doesn't affect the final result.

Of course, instead of starting from scratch, you might want to use an existing Ruby framework like Sinatra. But if you want the full control of your request at a very low level, Rack itself is a good choice.

Upvotes: 1

Joshua Smith
Joshua Smith

Reputation: 6621

Yes, use sinatra.

http://www.sinatrarb.com/

Upvotes: 8

Related Questions