{"action":"created","comment":{"url":"https://api.github.com/repos/handshakejp/api/pulls/comments/29756861","id":29756861,"diff_hunk":"@@ -86,8 +98,10 @@ DEPENDENCIES\n   guard\n   guard-rubocop\n   guard-shell\n+  mocha\n   parse-ruby-client\n   rack-test\n   rake\n   rubocop\n   sinatra\n+  sinatra-contrib","path":"Gemfile.lock","position":79,"original_position":79,"commit_id":"26a8ecb9f92b9a81d8e4cf3b84a54953d8adfd6e","original_commit_id":"26a8ecb9f92b9a81d8e4cf3b84a54953d8adfd6e","user":{"login":"shoma2da","id":2342648,"avatar_url":"https://avatars.githubusercontent.com/u/2342648?v=3","gravatar_id":"","url":"https://api.github.com/users/shoma2da","html_url":"https://github.com/shoma2da","followers_url":"https://api.github.com/users/shoma2da/followers","following_url":"https://api.github.com/users/shoma2da/following{/other_user}","gists_url":"https://api.github.com/users/shoma2da/gists{/gist_id}","starred_url":"https://api.github.com/users/shoma2da/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoma2da/subscriptions","organizations_url":"https://api.github.com/users/shoma2da/orgs","repos_url":"https://api.github.com/users/shoma2da/repos","events_url":"https://api.github.com/users/shoma2da/events{/privacy}","received_events_url":"https://api.github.com/users/shoma2da/received_events","type":"User","site_admin":false},"body":"このファイルは以下２つの操作で変更しました。\r\n* `Gemfile`の編集後に`$ bundle install`\r\n* 適当なタイミングで`$ bundle update`を実行","created_at":"2015-05-06T13:21:12Z","updated_at":"2015-05-06T13:21:12Z","html_url":"https://github.com/handshakejp/api/pull/12#discussion_r29756861","pull_request_url":"https://api.github.com/repos/handshakejp/api/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/handshakejp/api/pulls/comments/29756861"},"html":{"href":"https://github.com/handshakejp/api/pull/12#discussion_r29756861"},"pull_request":{"href":"https://api.github.com/repos/handshakejp/api/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/handshakejp/api/pulls/12","id":34709594,"html_url":"https://github.com/handshakejp/api/pull/12","diff_url":"https://github.com/handshakejp/api/pull/12.diff","patch_url":"https://github.com/handshakejp/api/pull/12.patch","issue_url":"https://api.github.com/repos/handshakejp/api/issues/12","number":12,"state":"open","locked":false,"title":"[WIP]コメント投稿APIを作成する","user":{"login":"shoma2da","id":2342648,"avatar_url":"https://avatars.githubusercontent.com/u/2342648?v=3","gravatar_id":"","url":"https://api.github.com/users/shoma2da","html_url":"https://github.com/shoma2da","followers_url":"https://api.github.com/users/shoma2da/followers","following_url":"https://api.github.com/users/shoma2da/following{/other_user}","gists_url":"https://api.github.com/users/shoma2da/gists{/gist_id}","starred_url":"https://api.github.com/users/shoma2da/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoma2da/subscriptions","organizations_url":"https://api.github.com/users/shoma2da/orgs","repos_url":"https://api.github.com/users/shoma2da/repos","events_url":"https://api.github.com/users/shoma2da/events{/privacy}","received_events_url":"https://api.github.com/users/shoma2da/received_events","type":"User","site_admin":false},"body":"## issues \r\n\r\n#3 \r\n\r\n## 概要\r\n\r\n* `/v1/comments`にPOSTメソッドでリクエストを送るとデータが作成される（保存先は[Parse](https://www.parse.com/apps/handshakejp/collections#class/Comment)）\r\n* Request bodyに特定形式のJSONデータを入れることでデータを渡せる\r\n* データ作成に成功した場合は 201 レスポンス、失敗した場合は 400 レスポンスが返ってくる\r\n\r\n## 開発\r\n\r\n* DHCというツールを使ってPOSTリクエストを送ってテストしてました。（ [参考ブログ](http://blog.mah-lab.com/2014/08/26/chrome-rest-api-testing/) ）","created_at":"2015-05-05T09:55:18Z","updated_at":"2015-05-06T13:21:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"239c44af01c426f8e56f05188c21d6c0495e2741","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/handshakejp/api/pulls/12/commits","review_comments_url":"https://api.github.com/repos/handshakejp/api/pulls/12/comments","review_comment_url":"https://api.github.com/repos/handshakejp/api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/handshakejp/api/issues/12/comments","statuses_url":"https://api.github.com/repos/handshakejp/api/statuses/26a8ecb9f92b9a81d8e4cf3b84a54953d8adfd6e","head":{"label":"handshakejp:create-post-comment-entrypoint","ref":"create-post-comment-entrypoint","sha":"26a8ecb9f92b9a81d8e4cf3b84a54953d8adfd6e","user":{"login":"handshakejp","id":10242909,"avatar_url":"https://avatars.githubusercontent.com/u/10242909?v=3","gravatar_id":"","url":"https://api.github.com/users/handshakejp","html_url":"https://github.com/handshakejp","followers_url":"https://api.github.com/users/handshakejp/followers","following_url":"https://api.github.com/users/handshakejp/following{/other_user}","gists_url":"https://api.github.com/users/handshakejp/gists{/gist_id}","starred_url":"https://api.github.com/users/handshakejp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/handshakejp/subscriptions","organizations_url":"https://api.github.com/users/handshakejp/orgs","repos_url":"https://api.github.com/users/handshakejp/repos","events_url":"https://api.github.com/users/handshakejp/events{/privacy}","received_events_url":"https://api.github.com/users/handshakejp/received_events","type":"Organization","site_admin":false},"repo":{"id":33441885,"name":"api","full_name":"handshakejp/api","owner":{"login":"handshakejp","id":10242909,"avatar_url":"https://avatars.githubusercontent.com/u/10242909?v=3","gravatar_id":"","url":"https://api.github.com/users/handshakejp","html_url":"https://github.com/handshakejp","followers_url":"https://api.github.com/users/handshakejp/followers","following_url":"https://api.github.com/users/handshakejp/following{/other_user}","gists_url":"https://api.github.com/users/handshakejp/gists{/gist_id}","starred_url":"https://api.github.com/users/handshakejp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/handshakejp/subscriptions","organizations_url":"https://api.github.com/users/handshakejp/orgs","repos_url":"https://api.github.com/users/handshakejp/repos","events_url":"https://api.github.com/users/handshakejp/events{/privacy}","received_events_url":"https://api.github.com/users/handshakejp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/handshakejp/api","description":"","fork":false,"url":"https://api.github.com/repos/handshakejp/api","forks_url":"https://api.github.com/repos/handshakejp/api/forks","keys_url":"https://api.github.com/repos/handshakejp/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/handshakejp/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/handshakejp/api/teams","hooks_url":"https://api.github.com/repos/handshakejp/api/hooks","issue_events_url":"https://api.github.com/repos/handshakejp/api/issues/events{/number}","events_url":"https://api.github.com/repos/handshakejp/api/events","assignees_url":"https://api.github.com/repos/handshakejp/api/assignees{/user}","branches_url":"https://api.github.com/repos/handshakejp/api/branches{/branch}","tags_url":"https://api.github.com/repos/handshakejp/api/tags","blobs_url":"https://api.github.com/repos/handshakejp/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/handshakejp/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/handshakejp/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/handshakejp/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/handshakejp/api/statuses/{sha}","languages_url":"https://api.github.com/repos/handshakejp/api/languages","stargazers_url":"https://api.github.com/repos/handshakejp/api/stargazers","contributors_url":"https://api.github.com/repos/handshakejp/api/contributors","subscribers_url":"https://api.github.com/repos/handshakejp/api/subscribers","subscription_url":"https://api.github.com/repos/handshakejp/api/subscription","commits_url":"https://api.github.com/repos/handshakejp/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/handshakejp/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/handshakejp/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/handshakejp/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/handshakejp/api/contents/{+path}","compare_url":"https://api.github.com/repos/handshakejp/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/handshakejp/api/merges","archive_url":"https://api.github.com/repos/handshakejp/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/handshakejp/api/downloads","issues_url":"https://api.github.com/repos/handshakejp/api/issues{/number}","pulls_url":"https://api.github.com/repos/handshakejp/api/pulls{/number}","milestones_url":"https://api.github.com/repos/handshakejp/api/milestones{/number}","notifications_url":"https://api.github.com/repos/handshakejp/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/handshakejp/api/labels{/name}","releases_url":"https://api.github.com/repos/handshakejp/api/releases{/id}","created_at":"2015-04-05T13:39:13Z","updated_at":"2015-05-05T09:30:12Z","pushed_at":"2015-05-06T13:01:35Z","git_url":"git://github.com/handshakejp/api.git","ssh_url":"git@github.com:handshakejp/api.git","clone_url":"https://github.com/handshakejp/api.git","svn_url":"https://github.com/handshakejp/api","homepage":null,"size":312,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"handshakejp:master","ref":"master","sha":"c7a2605f4cc486433350e19221117d53a083638c","user":{"login":"handshakejp","id":10242909,"avatar_url":"https://avatars.githubusercontent.com/u/10242909?v=3","gravatar_id":"","url":"https://api.github.com/users/handshakejp","html_url":"https://github.com/handshakejp","followers_url":"https://api.github.com/users/handshakejp/followers","following_url":"https://api.github.com/users/handshakejp/following{/other_user}","gists_url":"https://api.github.com/users/handshakejp/gists{/gist_id}","starred_url":"https://api.github.com/users/handshakejp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/handshakejp/subscriptions","organizations_url":"https://api.github.com/users/handshakejp/orgs","repos_url":"https://api.github.com/users/handshakejp/repos","events_url":"https://api.github.com/users/handshakejp/events{/privacy}","received_events_url":"https://api.github.com/users/handshakejp/received_events","type":"Organization","site_admin":false},"repo":{"id":33441885,"name":"api","full_name":"handshakejp/api","owner":{"login":"handshakejp","id":10242909,"avatar_url":"https://avatars.githubusercontent.com/u/10242909?v=3","gravatar_id":"","url":"https://api.github.com/users/handshakejp","html_url":"https://github.com/handshakejp","followers_url":"https://api.github.com/users/handshakejp/followers","following_url":"https://api.github.com/users/handshakejp/following{/other_user}","gists_url":"https://api.github.com/users/handshakejp/gists{/gist_id}","starred_url":"https://api.github.com/users/handshakejp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/handshakejp/subscriptions","organizations_url":"https://api.github.com/users/handshakejp/orgs","repos_url":"https://api.github.com/users/handshakejp/repos","events_url":"https://api.github.com/users/handshakejp/events{/privacy}","received_events_url":"https://api.github.com/users/handshakejp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/handshakejp/api","description":"","fork":false,"url":"https://api.github.com/repos/handshakejp/api","forks_url":"https://api.github.com/repos/handshakejp/api/forks","keys_url":"https://api.github.com/repos/handshakejp/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/handshakejp/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/handshakejp/api/teams","hooks_url":"https://api.github.com/repos/handshakejp/api/hooks","issue_events_url":"https://api.github.com/repos/handshakejp/api/issues/events{/number}","events_url":"https://api.github.com/repos/handshakejp/api/events","assignees_url":"https://api.github.com/repos/handshakejp/api/assignees{/user}","branches_url":"https://api.github.com/repos/handshakejp/api/branches{/branch}","tags_url":"https://api.github.com/repos/handshakejp/api/tags","blobs_url":"https://api.github.com/repos/handshakejp/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/handshakejp/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/handshakejp/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/handshakejp/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/handshakejp/api/statuses/{sha}","languages_url":"https://api.github.com/repos/handshakejp/api/languages","stargazers_url":"https://api.github.com/repos/handshakejp/api/stargazers","contributors_url":"https://api.github.com/repos/handshakejp/api/contributors","subscribers_url":"https://api.github.com/repos/handshakejp/api/subscribers","subscription_url":"https://api.github.com/repos/handshakejp/api/subscription","commits_url":"https://api.github.com/repos/handshakejp/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/handshakejp/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/handshakejp/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/handshakejp/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/handshakejp/api/contents/{+path}","compare_url":"https://api.github.com/repos/handshakejp/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/handshakejp/api/merges","archive_url":"https://api.github.com/repos/handshakejp/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/handshakejp/api/downloads","issues_url":"https://api.github.com/repos/handshakejp/api/issues{/number}","pulls_url":"https://api.github.com/repos/handshakejp/api/pulls{/number}","milestones_url":"https://api.github.com/repos/handshakejp/api/milestones{/number}","notifications_url":"https://api.github.com/repos/handshakejp/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/handshakejp/api/labels{/name}","releases_url":"https://api.github.com/repos/handshakejp/api/releases{/id}","created_at":"2015-04-05T13:39:13Z","updated_at":"2015-05-05T09:30:12Z","pushed_at":"2015-05-06T13:01:35Z","git_url":"git://github.com/handshakejp/api.git","ssh_url":"git@github.com:handshakejp/api.git","clone_url":"https://github.com/handshakejp/api.git","svn_url":"https://github.com/handshakejp/api","homepage":null,"size":312,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/handshakejp/api/pulls/12"},"html":{"href":"https://github.com/handshakejp/api/pull/12"},"issue":{"href":"https://api.github.com/repos/handshakejp/api/issues/12"},"comments":{"href":"https://api.github.com/repos/handshakejp/api/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/handshakejp/api/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/handshakejp/api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/handshakejp/api/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/handshakejp/api/statuses/26a8ecb9f92b9a81d8e4cf3b84a54953d8adfd6e"}}}}