{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/19832","labels_url":"https://api.github.com/repos/rails/rails/issues/19832/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/19832/comments","events_url":"https://api.github.com/repos/rails/rails/issues/19832/events","html_url":"https://github.com/rails/rails/pull/19832","id":69666057,"number":19832,"title":"Rails api","user":{"login":"dhh","id":2741,"avatar_url":"https://avatars.githubusercontent.com/u/2741?v=3","gravatar_id":"","url":"https://api.github.com/users/dhh","html_url":"https://github.com/dhh","followers_url":"https://api.github.com/users/dhh/followers","following_url":"https://api.github.com/users/dhh/following{/other_user}","gists_url":"https://api.github.com/users/dhh/gists{/gist_id}","starred_url":"https://api.github.com/users/dhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhh/subscriptions","organizations_url":"https://api.github.com/users/dhh/orgs","repos_url":"https://api.github.com/users/dhh/repos","events_url":"https://api.github.com/users/dhh/events{/privacy}","received_events_url":"https://api.github.com/users/dhh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails/rails/labels/actionpack","name":"actionpack","color":"FFF700"},{"url":"https://api.github.com/repos/rails/rails/labels/railties","name":"railties","color":"8BE06E"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rails/rails/milestones/34","html_url":"https://github.com/rails/rails/milestones/5.0.0","labels_url":"https://api.github.com/repos/rails/rails/milestones/34/labels","id":665192,"number":34,"title":"5.0.0","description":null,"creator":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"open_issues":95,"closed_issues":97,"state":"open","created_at":"2014-05-21T00:58:22Z","updated_at":"2015-04-23T13:55:29Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2015-04-20T19:48:51Z","updated_at":"2015-04-25T17:43:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/19832","html_url":"https://github.com/rails/rails/pull/19832","diff_url":"https://github.com/rails/rails/pull/19832.diff","patch_url":"https://github.com/rails/rails/pull/19832.patch"},"body":"[Description extracted from http://wyeworks.com/blog/2015/4/20/rails-api-is-going-to-be-included-in-rails-5/]\r\n\r\nA decision was made to incorporate Rails API into Rails core 🎉 🎉 🎉.\r\n\r\n# What Is Rails API?\r\n\r\nThe original idea behind Rails API was to serve as a starting point for a version of Rails better suited for JS-heavy apps. As of today, Rails API provides: trimmed down controllers and middleware stack together with a matching set of generators, all specifically tailored for API type applications.\r\n\r\n# Next steps\r\n\r\nWe still need to discuss the “Rails way” for API applications, how API apps should be built and, what features we’d like included from our original list of ideas. In particular:\r\n\r\n* Do we want to avoid asset generation in Rails by having a back-end and a front-end apps?\r\n* Do we prefer to have a single application and keep asset generation in Rails instead?\r\n* Do we like Active Model Serializers better than Jbuilder?\r\n* If not, can we make Rails API play nicely with Jbuilder?"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/96244560","html_url":"https://github.com/rails/rails/pull/19832#issuecomment-96244560","issue_url":"https://api.github.com/repos/rails/rails/issues/19832","id":96244560,"user":{"login":"uberllama","id":109640,"avatar_url":"https://avatars.githubusercontent.com/u/109640?v=3","gravatar_id":"","url":"https://api.github.com/users/uberllama","html_url":"https://github.com/uberllama","followers_url":"https://api.github.com/users/uberllama/followers","following_url":"https://api.github.com/users/uberllama/following{/other_user}","gists_url":"https://api.github.com/users/uberllama/gists{/gist_id}","starred_url":"https://api.github.com/users/uberllama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uberllama/subscriptions","organizations_url":"https://api.github.com/users/uberllama/orgs","repos_url":"https://api.github.com/users/uberllama/repos","events_url":"https://api.github.com/users/uberllama/events{/privacy}","received_events_url":"https://api.github.com/users/uberllama/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T17:43:19Z","updated_at":"2015-04-25T17:43:19Z","body":"Moving API-only configuration into Rails 5 is an excellent decision, but it certainly shouldn't bias toward any given JSON serializer. Some people like to serialize their JSON in classes, some like composable views. I fall into the latter camp and its been great.\r\n\r\nRegarding the question of asset compilation, its an issue I'm dealing with right now and a tricky one. We have a Rails API serving a large React SPA and are currently near EOL using AP. We'll be moving to Webpack. That being said, we haven't decided whether or not to fully extract the front end from the repo and have separate builds or to keep the front end assets within the Rails app, and have web pack build a compiled JS file that AP then uglifies and hashes. Its certainly an interesting issue."}}