I am planning to start a pure API only application using Rails4.2. As its a API application external clients makes requests to the app, no views are involved in the application. I would like to know what is the best method to build the application. Should I make use of gems like jbuilder
/rabl
or should I use gems like Grape
? Which would be more efficient?
If you are going to use Rails, I recommend that you don't go with Grape. Here is the reason why I think so:
There might be an option in rocket_pants, but from my experience, if you want to use Rails, and unless you have a strong rationale to do otherwise, I would recommend keeping it simple and just sticking with jbuilder or active_model_serializers.