A sample JSON API with Rails 4