Q:

Use Rails or Sinatra to bulid an Restful API?

I have a question,
I need to create an API for an iOS app. This API will be private, only usable with the iOS App and I don't know what framework I must to use.
Rais? Sinatra? rails-api?
What is your recommendation?
Thanks!

A:

If you are already familiar with Rails, I'd use the Rails API gem. It customizes Rails to behave as an API, and includes several useful functionalities like versioning and serialization.
Sinatra can be good for a very simple API, but usually, you'll end up adding most of Rails back into it.

A:

In addition to rails-api, I would take a look to Grape gem 
You can use it on top of Rack, Sinatra and Rails.

