{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/267","repository_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project","labels_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/267/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/267/events","html_url":"https://github.com/ga-wdi-boston/capstone-project/issues/267","id":179826489,"number":267,"title":"Understanding adapter.js","user":{"login":"natGalynker","id":18671336,"avatar_url":"https://avatars.githubusercontent.com/u/18671336?v=3","gravatar_id":"","url":"https://api.github.com/users/natGalynker","html_url":"https://github.com/natGalynker","followers_url":"https://api.github.com/users/natGalynker/followers","following_url":"https://api.github.com/users/natGalynker/following{/other_user}","gists_url":"https://api.github.com/users/natGalynker/gists{/gist_id}","starred_url":"https://api.github.com/users/natGalynker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natGalynker/subscriptions","organizations_url":"https://api.github.com/users/natGalynker/orgs","repos_url":"https://api.github.com/users/natGalynker/repos","events_url":"https://api.github.com/users/natGalynker/events{/privacy}","received_events_url":"https://api.github.com/users/natGalynker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-28T16:48:03Z","updated_at":"2016-09-28T17:28:22Z","closed_at":null,"body":"I am trying to understand what adapter.js is doing\r\n\r\nI am referencing the listr-list and using antony's solution branch with his commits.\r\nBut specifically for that commit in that file the only information in the commit is that there is an extension of the adapter for item.\r\n\r\nI can tell that there is some AJAX happening and that a post request is happening, but I don't quite understand how that is happening.\r\n\r\nI would really like some help understanding this\r\n\r\n```\r\nimport ApplicationAdapter from 'ga-wdi-boston.ember-resources/application/adapter';\r\n\r\nexport default ApplicationAdapter.extend({\r\n  createRecord (store, type, record) {\r\n    let api = this.get('host');\r\n    let serialized = this.serialize(record, { includeId: true });\r\n\r\n    // let listId = serialized.list_id;\r\n    let listId = 2;\r\n    let url = `${api}/lists/${listId}/items`;\r\n    let data = { item: serialized };\r\n    return this.ajax(url, 'POST', { data });\r\n  },\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/comments/250237696","html_url":"https://github.com/ga-wdi-boston/capstone-project/issues/267#issuecomment-250237696","issue_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/267","id":250237696,"user":{"login":"gaand","id":10064043,"avatar_url":"https://avatars.githubusercontent.com/u/10064043?v=3","gravatar_id":"","url":"https://api.github.com/users/gaand","html_url":"https://github.com/gaand","followers_url":"https://api.github.com/users/gaand/followers","following_url":"https://api.github.com/users/gaand/following{/other_user}","gists_url":"https://api.github.com/users/gaand/gists{/gist_id}","starred_url":"https://api.github.com/users/gaand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaand/subscriptions","organizations_url":"https://api.github.com/users/gaand/orgs","repos_url":"https://api.github.com/users/gaand/repos","events_url":"https://api.github.com/users/gaand/events{/privacy}","received_events_url":"https://api.github.com/users/gaand/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T17:28:22Z","updated_at":"2016-09-28T17:28:22Z","body":"This is a specialization to handle nested routes, something you can probably avoid since you have control of the API.\r\n"}}
{"actor":{"display_login":"gaand"}}