新手问题 请问设计 API 用哪种框架比较好?

shell · July 26, 2013 · Last by leopku replied at July 26, 2013 · 4309 hits

搜到的有 Grape:https://github.com/intridea/grape RocketPants:https://github.com/filtersquad/rocket_pants ActiveResource:https://github.com/rails/activeresource

这三个各有什么优缺点?都适用哪种场景?

推荐 Goliath

#1 楼 @blackanger 这个优点是什么?异步?

#2 楼 @shell 嗯,异步。你可以去了解一下: https://github.com/postrank-labs/goliath

http://ruby-china.org/topics/11249

这也有个评测,你可以看看。 说明的是 Goliath 不用 Grape 也可以。

我用的是 grape。

我也用的 grape。

为什么不是 mountable + sinatra 呢?

grape +1

You need to Sign in before reply, if you don't have an account, please Sign up first.