Reputation: 43
Is possible to create a fully-featured REST server with Ruby (not Rails)?
Upvotes: 4
Views: 8416
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
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
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