开发者

Fully featured REST server with Ruby?

开发者 https://www.devze.com 2023-04-09 00:39 出处:网络
Is possible to create a fully-featured 开发者_如何学JAVAREST server with Ruby (not Rails)?Yes, use sinatra.

Is possible to create a fully-featured 开发者_如何学JAVAREST server with Ruby (not Rails)?


Yes, use sinatra.

http://www.sinatrarb.com/


Yes, see Grape for a good example.


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.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号