{"action":"closed","number":45,"pull_request":{"url":"https://api.github.com/repos/pepabo/railstutorial-ios/pulls/45","id":43729500,"html_url":"https://github.com/pepabo/railstutorial-ios/pull/45","diff_url":"https://github.com/pepabo/railstutorial-ios/pull/45.diff","patch_url":"https://github.com/pepabo/railstutorial-ios/pull/45.patch","issue_url":"https://api.github.com/repos/pepabo/railstutorial-ios/issues/45","number":45,"state":"closed","locked":false,"title":"[WIP]APIClientをつくる","user":{"login":"orzup","id":1712281,"avatar_url":"https://avatars.githubusercontent.com/u/1712281?v=3","gravatar_id":"","url":"https://api.github.com/users/orzup","html_url":"https://github.com/orzup","followers_url":"https://api.github.com/users/orzup/followers","following_url":"https://api.github.com/users/orzup/following{/other_user}","gists_url":"https://api.github.com/users/orzup/gists{/gist_id}","starred_url":"https://api.github.com/users/orzup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orzup/subscriptions","organizations_url":"https://api.github.com/users/orzup/orgs","repos_url":"https://api.github.com/users/orzup/repos","events_url":"https://api.github.com/users/orzup/events{/privacy}","received_events_url":"https://api.github.com/users/orzup/received_events","type":"User","site_admin":false},"body":"イケイケなAPIClientがほしい。 @kuroyam さんにenumを使った方法があることを教えていただいたので、それをがんばって作るPRです。\r\n\r\nどんな風によびだしたいか\r\n`APIClient.request(Feed, parameters: [user_id: \"1\"], くろーじゃ)`\r\n\r\n## マージ条件\r\n- all green\r\n- 2LGTM\r\n\r\n---\r\n\r\n参考: \r\n- https://gist.github.com/kuroyam/74b105f8826b460f14a8\r\n- http://developer.hatenastaff.com/entry/smart-api-client-with-swift-using-enum-and-generics\r\n- http://blog.ishkawa.org/2015/02/17/1424099641/","created_at":"2015-08-31T03:38:57Z","updated_at":"2015-08-31T06:29:26Z","closed_at":"2015-08-31T06:29:26Z","merged_at":null,"merge_commit_sha":"0e03e520a63e87eed2eb562a02d74c740149c60e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pepabo/railstutorial-ios/pulls/45/commits","review_comments_url":"https://api.github.com/repos/pepabo/railstutorial-ios/pulls/45/comments","review_comment_url":"https://api.github.com/repos/pepabo/railstutorial-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pepabo/railstutorial-ios/issues/45/comments","statuses_url":"https://api.github.com/repos/pepabo/railstutorial-ios/statuses/594389d2b6cb49687addfc082de828e3eb5839d3","head":{"label":"pepabo:api-client","ref":"api-client","sha":"594389d2b6cb49687addfc082de828e3eb5839d3","user":{"login":"pepabo","id":1708980,"avatar_url":"https://avatars.githubusercontent.com/u/1708980?v=3","gravatar_id":"","url":"https://api.github.com/users/pepabo","html_url":"https://github.com/pepabo","followers_url":"https://api.github.com/users/pepabo/followers","following_url":"https://api.github.com/users/pepabo/following{/other_user}","gists_url":"https://api.github.com/users/pepabo/gists{/gist_id}","starred_url":"https://api.github.com/users/pepabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepabo/subscriptions","organizations_url":"https://api.github.com/users/pepabo/orgs","repos_url":"https://api.github.com/users/pepabo/repos","events_url":"https://api.github.com/users/pepabo/events{/privacy}","received_events_url":"https://api.github.com/users/pepabo/received_events","type":"Organization","site_admin":false},"repo":{"id":40952026,"name":"railstutorial-ios","full_name":"pepabo/railstutorial-ios","owner":{"login":"pepabo","id":1708980,"avatar_url":"https://avatars.githubusercontent.com/u/1708980?v=3","gravatar_id":"","url":"https://api.github.com/users/pepabo","html_url":"https://github.com/pepabo","followers_url":"https://api.github.com/users/pepabo/followers","following_url":"https://api.github.com/users/pepabo/following{/other_user}","gists_url":"https://api.github.com/users/pepabo/gists{/gist_id}","starred_url":"https://api.github.com/users/pepabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepabo/subscriptions","organizations_url":"https://api.github.com/users/pepabo/orgs","repos_url":"https://api.github.com/users/pepabo/repos","events_url":"https://api.github.com/users/pepabo/events{/privacy}","received_events_url":"https://api.github.com/users/pepabo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pepabo/railstutorial-ios","description":"チーム涅槃","fork":false,"url":"https://api.github.com/repos/pepabo/railstutorial-ios","forks_url":"https://api.github.com/repos/pepabo/railstutorial-ios/forks","keys_url":"https://api.github.com/repos/pepabo/railstutorial-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pepabo/railstutorial-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pepabo/railstutorial-ios/teams","hooks_url":"https://api.github.com/repos/pepabo/railstutorial-ios/hooks","issue_events_url":"https://api.github.com/repos/pepabo/railstutorial-ios/issues/events{/number}","events_url":"https://api.github.com/repos/pepabo/railstutorial-ios/events","assignees_url":"https://api.github.com/repos/pepabo/railstutorial-ios/assignees{/user}","branches_url":"https://api.github.com/repos/pepabo/railstutorial-ios/branches{/branch}","tags_url":"https://api.github.com/repos/pepabo/railstutorial-ios/tags","blobs_url":"https://api.github.com/repos/pepabo/railstutorial-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pepabo/railstutorial-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pepabo/railstutorial-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/pepabo/railstutorial-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pepabo/railstutorial-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/pepabo/railstutorial-ios/languages","stargazers_url":"https://api.github.com/repos/pepabo/railstutorial-ios/stargazers","contributors_url":"https://api.github.com/repos/pepabo/railstutorial-ios/contributors","subscribers_url":"https://api.github.com/repos/pepabo/railstutorial-ios/subscribers","subscription_url":"https://api.github.com/repos/pepabo/railstutorial-ios/subscription","commits_url":"https://api.github.com/repos/pepabo/railstutorial-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/pepabo/railstutorial-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/pepabo/railstutorial-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/pepabo/railstutorial-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/pepabo/railstutorial-ios/contents/{+path}","compare_url":"https://api.github.com/repos/pepabo/railstutorial-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pepabo/railstutorial-ios/merges","archive_url":"https://api.github.com/repos/pepabo/railstutorial-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pepabo/railstutorial-ios/downloads","issues_url":"https://api.github.com/repos/pepabo/railstutorial-ios/issues{/number}","pulls_url":"https://api.github.com/repos/pepabo/railstutorial-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/pepabo/railstutorial-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/pepabo/railstutorial-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pepabo/railstutorial-ios/labels{/name}","releases_url":"https://api.github.com/repos/pepabo/railstutorial-ios/releases{/id}","created_at":"2015-08-18T05:10:03Z","updated_at":"2015-08-19T10:16:22Z","pushed_at":"2015-08-31T06:06:52Z","git_url":"git://github.com/pepabo/railstutorial-ios.git","ssh_url":"git@github.com:pepabo/railstutorial-ios.git","clone_url":"https://github.com/pepabo/railstutorial-ios.git","svn_url":"https://github.com/pepabo/railstutorial-ios","homepage":"","size":1652,"stargazers_count":3,"watchers_count":3,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":3,"default_branch":"development"}},"base":{"label":"pepabo:development","ref":"development","sha":"d0992fb1335d587fd7d19230769107b2291e9e27","user":{"login":"pepabo","id":1708980,"avatar_url":"https://avatars.githubusercontent.com/u/1708980?v=3","gravatar_id":"","url":"https://api.github.com/users/pepabo","html_url":"https://github.com/pepabo","followers_url":"https://api.github.com/users/pepabo/followers","following_url":"https://api.github.com/users/pepabo/following{/other_user}","gists_url":"https://api.github.com/users/pepabo/gists{/gist_id}","starred_url":"https://api.github.com/users/pepabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepabo/subscriptions","organizations_url":"https://api.github.com/users/pepabo/orgs","repos_url":"https://api.github.com/users/pepabo/repos","events_url":"https://api.github.com/users/pepabo/events{/privacy}","received_events_url":"https://api.github.com/users/pepabo/received_events","type":"Organization","site_admin":false},"repo":{"id":40952026,"name":"railstutorial-ios","full_name":"pepabo/railstutorial-ios","owner":{"login":"pepabo","id":1708980,"avatar_url":"https://avatars.githubusercontent.com/u/1708980?v=3","gravatar_id":"","url":"https://api.github.com/users/pepabo","html_url":"https://github.com/pepabo","followers_url":"https://api.github.com/users/pepabo/followers","following_url":"https://api.github.com/users/pepabo/following{/other_user}","gists_url":"https://api.github.com/users/pepabo/gists{/gist_id}","starred_url":"https://api.github.com/users/pepabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepabo/subscriptions","organizations_url":"https://api.github.com/users/pepabo/orgs","repos_url":"https://api.github.com/users/pepabo/repos","events_url":"https://api.github.com/users/pepabo/events{/privacy}","received_events_url":"https://api.github.com/users/pepabo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pepabo/railstutorial-ios","description":"チーム涅槃","fork":false,"url":"https://api.github.com/repos/pepabo/railstutorial-ios","forks_url":"https://api.github.com/repos/pepabo/railstutorial-ios/forks","keys_url":"https://api.github.com/repos/pepabo/railstutorial-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pepabo/railstutorial-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pepabo/railstutorial-ios/teams","hooks_url":"https://api.github.com/repos/pepabo/railstutorial-ios/hooks","issue_events_url":"https://api.github.com/repos/pepabo/railstutorial-ios/issues/events{/number}","events_url":"https://api.github.com/repos/pepabo/railstutorial-ios/events","assignees_url":"https://api.github.com/repos/pepabo/railstutorial-ios/assignees{/user}","branches_url":"https://api.github.com/repos/pepabo/railstutorial-ios/branches{/branch}","tags_url":"https://api.github.com/repos/pepabo/railstutorial-ios/tags","blobs_url":"https://api.github.com/repos/pepabo/railstutorial-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pepabo/railstutorial-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pepabo/railstutorial-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/pepabo/railstutorial-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pepabo/railstutorial-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/pepabo/railstutorial-ios/languages","stargazers_url":"https://api.github.com/repos/pepabo/railstutorial-ios/stargazers","contributors_url":"https://api.github.com/repos/pepabo/railstutorial-ios/contributors","subscribers_url":"https://api.github.com/repos/pepabo/railstutorial-ios/subscribers","subscription_url":"https://api.github.com/repos/pepabo/railstutorial-ios/subscription","commits_url":"https://api.github.com/repos/pepabo/railstutorial-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/pepabo/railstutorial-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/pepabo/railstutorial-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/pepabo/railstutorial-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/pepabo/railstutorial-ios/contents/{+path}","compare_url":"https://api.github.com/repos/pepabo/railstutorial-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pepabo/railstutorial-ios/merges","archive_url":"https://api.github.com/repos/pepabo/railstutorial-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pepabo/railstutorial-ios/downloads","issues_url":"https://api.github.com/repos/pepabo/railstutorial-ios/issues{/number}","pulls_url":"https://api.github.com/repos/pepabo/railstutorial-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/pepabo/railstutorial-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/pepabo/railstutorial-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pepabo/railstutorial-ios/labels{/name}","releases_url":"https://api.github.com/repos/pepabo/railstutorial-ios/releases{/id}","created_at":"2015-08-18T05:10:03Z","updated_at":"2015-08-19T10:16:22Z","pushed_at":"2015-08-31T06:06:52Z","git_url":"git://github.com/pepabo/railstutorial-ios.git","ssh_url":"git@github.com:pepabo/railstutorial-ios.git","clone_url":"https://github.com/pepabo/railstutorial-ios.git","svn_url":"https://github.com/pepabo/railstutorial-ios","homepage":"","size":1652,"stargazers_count":3,"watchers_count":3,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":3,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/pepabo/railstutorial-ios/pulls/45"},"html":{"href":"https://github.com/pepabo/railstutorial-ios/pull/45"},"issue":{"href":"https://api.github.com/repos/pepabo/railstutorial-ios/issues/45"},"comments":{"href":"https://api.github.com/repos/pepabo/railstutorial-ios/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/pepabo/railstutorial-ios/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/pepabo/railstutorial-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pepabo/railstutorial-ios/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/pepabo/railstutorial-ios/statuses/594389d2b6cb49687addfc082de828e3eb5839d3"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":4,"additions":82,"deletions":0,"changed_files":3}}