I'd like to open my Rails 2.3 app (hosted on Heroku) to developers. I thought of two ways of doing this:
- Using the respond_to |format| of the app, and a before_filter only allowing authorized developers API keys
- Using a second Heroku account dedicated to the API, sharing the original app's database. Now, what would be better: Rails, Sinatra, or Grape?
I know this is a vague question. Do you have any good articles or architectural patterns that could help me?
Thanks,
Kevin