{"action":"created","comment":{"url":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls/comments/27102278","id":27102278,"diff_hunk":"@@ -0,0 +1,228 @@\n+var express = require('express');\n+var router = express.Router();\n+var mongoose = require('mongoose');\n+var accepts = require('accepts')\n+var reviews = [{\n+    name: 'McDo',\n+    placeType: 'Fastfood',\n+    stars: 4\n+}, {\n+    name: 'KFC',\n+    placeType: 'Fastfood',\n+    stars: 5\n+}, {\n+    name: 'SUBWAY',\n+    placeType: 'Fastfood',\n+    stars: 3\n+}, {\n+    name: 'Quick',\n+    placeType: 'Fastfood',\n+    stars: 1\n+}];\n+\n+var Reviews = mongoose.model('Reviews');\n+\n+router.get('/', function(req, res, next) {\n+    var accept = accepts(req)\n+    Reviews.find({}, function(err, reviews) {\n+        if (err) {\n+            res.status(500).send({\n+                'error': err\n+            });\n+        } else {\n+            switch (accept.type(['json', 'html'])) {\n+                case 'json':\n+                    res.setHeader('Content-Type', 'application/json');\n+                    res.status(200).send(reviews);\n+                    break","path":"routes/api/reviews.js","position":37,"original_position":37,"commit_id":"2a385f4427f519316c9f1aab8117196137956ea6","original_commit_id":"2a385f4427f519316c9f1aab8117196137956ea6","user":{"login":"jomaora","id":7602475,"avatar_url":"https://avatars.githubusercontent.com/u/7602475?v=3","gravatar_id":"","url":"https://api.github.com/users/jomaora","html_url":"https://github.com/jomaora","followers_url":"https://api.github.com/users/jomaora/followers","following_url":"https://api.github.com/users/jomaora/following{/other_user}","gists_url":"https://api.github.com/users/jomaora/gists{/gist_id}","starred_url":"https://api.github.com/users/jomaora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jomaora/subscriptions","organizations_url":"https://api.github.com/users/jomaora/orgs","repos_url":"https://api.github.com/users/jomaora/repos","events_url":"https://api.github.com/users/jomaora/events{/privacy}","received_events_url":"https://api.github.com/users/jomaora/received_events","type":"User","site_admin":false},"body":"missing ;","created_at":"2015-03-25T08:42:21Z","updated_at":"2015-03-25T08:42:21Z","html_url":"https://github.com/AC-CodeProd/ws-api/pull/1#discussion_r27102278","pull_request_url":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls/comments/27102278"},"html":{"href":"https://github.com/AC-CodeProd/ws-api/pull/1#discussion_r27102278"},"pull_request":{"href":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls/1","id":31901959,"html_url":"https://github.com/AC-CodeProd/ws-api/pull/1","diff_url":"https://github.com/AC-CodeProd/ws-api/pull/1.diff","patch_url":"https://github.com/AC-CodeProd/ws-api/pull/1.patch","issue_url":"https://api.github.com/repos/AC-CodeProd/ws-api/issues/1","number":1,"state":"open","locked":false,"title":"Code Review","user":{"login":"jomaora","id":7602475,"avatar_url":"https://avatars.githubusercontent.com/u/7602475?v=3","gravatar_id":"","url":"https://api.github.com/users/jomaora","html_url":"https://github.com/jomaora","followers_url":"https://api.github.com/users/jomaora/followers","following_url":"https://api.github.com/users/jomaora/following{/other_user}","gists_url":"https://api.github.com/users/jomaora/gists{/gist_id}","starred_url":"https://api.github.com/users/jomaora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jomaora/subscriptions","organizations_url":"https://api.github.com/users/jomaora/orgs","repos_url":"https://api.github.com/users/jomaora/repos","events_url":"https://api.github.com/users/jomaora/events{/privacy}","received_events_url":"https://api.github.com/users/jomaora/received_events","type":"User","site_admin":false},"body":"Cette branche permettra d'afficher mes commentaires et corrections sur ton projet","created_at":"2015-03-25T08:37:48Z","updated_at":"2015-03-25T08:42:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d59a5abd3ab75f7eb5e84a6cbb9afc4ca1b61d2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls/1/commits","review_comments_url":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls/1/comments","review_comment_url":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AC-CodeProd/ws-api/issues/1/comments","statuses_url":"https://api.github.com/repos/AC-CodeProd/ws-api/statuses/2a385f4427f519316c9f1aab8117196137956ea6","head":{"label":"AC-CodeProd:master","ref":"master","sha":"2a385f4427f519316c9f1aab8117196137956ea6","user":{"login":"AC-CodeProd","id":3169156,"avatar_url":"https://avatars.githubusercontent.com/u/3169156?v=3","gravatar_id":"","url":"https://api.github.com/users/AC-CodeProd","html_url":"https://github.com/AC-CodeProd","followers_url":"https://api.github.com/users/AC-CodeProd/followers","following_url":"https://api.github.com/users/AC-CodeProd/following{/other_user}","gists_url":"https://api.github.com/users/AC-CodeProd/gists{/gist_id}","starred_url":"https://api.github.com/users/AC-CodeProd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AC-CodeProd/subscriptions","organizations_url":"https://api.github.com/users/AC-CodeProd/orgs","repos_url":"https://api.github.com/users/AC-CodeProd/repos","events_url":"https://api.github.com/users/AC-CodeProd/events{/privacy}","received_events_url":"https://api.github.com/users/AC-CodeProd/received_events","type":"User","site_admin":false},"repo":{"id":30039134,"name":"ws-api","full_name":"AC-CodeProd/ws-api","owner":{"login":"AC-CodeProd","id":3169156,"avatar_url":"https://avatars.githubusercontent.com/u/3169156?v=3","gravatar_id":"","url":"https://api.github.com/users/AC-CodeProd","html_url":"https://github.com/AC-CodeProd","followers_url":"https://api.github.com/users/AC-CodeProd/followers","following_url":"https://api.github.com/users/AC-CodeProd/following{/other_user}","gists_url":"https://api.github.com/users/AC-CodeProd/gists{/gist_id}","starred_url":"https://api.github.com/users/AC-CodeProd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AC-CodeProd/subscriptions","organizations_url":"https://api.github.com/users/AC-CodeProd/orgs","repos_url":"https://api.github.com/users/AC-CodeProd/repos","events_url":"https://api.github.com/users/AC-CodeProd/events{/privacy}","received_events_url":"https://api.github.com/users/AC-CodeProd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AC-CodeProd/ws-api","description":"","fork":false,"url":"https://api.github.com/repos/AC-CodeProd/ws-api","forks_url":"https://api.github.com/repos/AC-CodeProd/ws-api/forks","keys_url":"https://api.github.com/repos/AC-CodeProd/ws-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AC-CodeProd/ws-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AC-CodeProd/ws-api/teams","hooks_url":"https://api.github.com/repos/AC-CodeProd/ws-api/hooks","issue_events_url":"https://api.github.com/repos/AC-CodeProd/ws-api/issues/events{/number}","events_url":"https://api.github.com/repos/AC-CodeProd/ws-api/events","assignees_url":"https://api.github.com/repos/AC-CodeProd/ws-api/assignees{/user}","branches_url":"https://api.github.com/repos/AC-CodeProd/ws-api/branches{/branch}","tags_url":"https://api.github.com/repos/AC-CodeProd/ws-api/tags","blobs_url":"https://api.github.com/repos/AC-CodeProd/ws-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AC-CodeProd/ws-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AC-CodeProd/ws-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/AC-CodeProd/ws-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AC-CodeProd/ws-api/statuses/{sha}","languages_url":"https://api.github.com/repos/AC-CodeProd/ws-api/languages","stargazers_url":"https://api.github.com/repos/AC-CodeProd/ws-api/stargazers","contributors_url":"https://api.github.com/repos/AC-CodeProd/ws-api/contributors","subscribers_url":"https://api.github.com/repos/AC-CodeProd/ws-api/subscribers","subscription_url":"https://api.github.com/repos/AC-CodeProd/ws-api/subscription","commits_url":"https://api.github.com/repos/AC-CodeProd/ws-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/AC-CodeProd/ws-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/AC-CodeProd/ws-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/AC-CodeProd/ws-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/AC-CodeProd/ws-api/contents/{+path}","compare_url":"https://api.github.com/repos/AC-CodeProd/ws-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AC-CodeProd/ws-api/merges","archive_url":"https://api.github.com/repos/AC-CodeProd/ws-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AC-CodeProd/ws-api/downloads","issues_url":"https://api.github.com/repos/AC-CodeProd/ws-api/issues{/number}","pulls_url":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls{/number}","milestones_url":"https://api.github.com/repos/AC-CodeProd/ws-api/milestones{/number}","notifications_url":"https://api.github.com/repos/AC-CodeProd/ws-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AC-CodeProd/ws-api/labels{/name}","releases_url":"https://api.github.com/repos/AC-CodeProd/ws-api/releases{/id}","created_at":"2015-01-29T20:14:42Z","updated_at":"2015-02-20T22:44:20Z","pushed_at":"2015-03-25T08:37:48Z","git_url":"git://github.com/AC-CodeProd/ws-api.git","ssh_url":"git@github.com:AC-CodeProd/ws-api.git","clone_url":"https://github.com/AC-CodeProd/ws-api.git","svn_url":"https://github.com/AC-CodeProd/ws-api","homepage":null,"size":296,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AC-CodeProd:code-review","ref":"code-review","sha":"917bda7a878dd9e95225e99552dab98f0eea8df0","user":{"login":"AC-CodeProd","id":3169156,"avatar_url":"https://avatars.githubusercontent.com/u/3169156?v=3","gravatar_id":"","url":"https://api.github.com/users/AC-CodeProd","html_url":"https://github.com/AC-CodeProd","followers_url":"https://api.github.com/users/AC-CodeProd/followers","following_url":"https://api.github.com/users/AC-CodeProd/following{/other_user}","gists_url":"https://api.github.com/users/AC-CodeProd/gists{/gist_id}","starred_url":"https://api.github.com/users/AC-CodeProd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AC-CodeProd/subscriptions","organizations_url":"https://api.github.com/users/AC-CodeProd/orgs","repos_url":"https://api.github.com/users/AC-CodeProd/repos","events_url":"https://api.github.com/users/AC-CodeProd/events{/privacy}","received_events_url":"https://api.github.com/users/AC-CodeProd/received_events","type":"User","site_admin":false},"repo":{"id":30039134,"name":"ws-api","full_name":"AC-CodeProd/ws-api","owner":{"login":"AC-CodeProd","id":3169156,"avatar_url":"https://avatars.githubusercontent.com/u/3169156?v=3","gravatar_id":"","url":"https://api.github.com/users/AC-CodeProd","html_url":"https://github.com/AC-CodeProd","followers_url":"https://api.github.com/users/AC-CodeProd/followers","following_url":"https://api.github.com/users/AC-CodeProd/following{/other_user}","gists_url":"https://api.github.com/users/AC-CodeProd/gists{/gist_id}","starred_url":"https://api.github.com/users/AC-CodeProd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AC-CodeProd/subscriptions","organizations_url":"https://api.github.com/users/AC-CodeProd/orgs","repos_url":"https://api.github.com/users/AC-CodeProd/repos","events_url":"https://api.github.com/users/AC-CodeProd/events{/privacy}","received_events_url":"https://api.github.com/users/AC-CodeProd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AC-CodeProd/ws-api","description":"","fork":false,"url":"https://api.github.com/repos/AC-CodeProd/ws-api","forks_url":"https://api.github.com/repos/AC-CodeProd/ws-api/forks","keys_url":"https://api.github.com/repos/AC-CodeProd/ws-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AC-CodeProd/ws-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AC-CodeProd/ws-api/teams","hooks_url":"https://api.github.com/repos/AC-CodeProd/ws-api/hooks","issue_events_url":"https://api.github.com/repos/AC-CodeProd/ws-api/issues/events{/number}","events_url":"https://api.github.com/repos/AC-CodeProd/ws-api/events","assignees_url":"https://api.github.com/repos/AC-CodeProd/ws-api/assignees{/user}","branches_url":"https://api.github.com/repos/AC-CodeProd/ws-api/branches{/branch}","tags_url":"https://api.github.com/repos/AC-CodeProd/ws-api/tags","blobs_url":"https://api.github.com/repos/AC-CodeProd/ws-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AC-CodeProd/ws-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AC-CodeProd/ws-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/AC-CodeProd/ws-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AC-CodeProd/ws-api/statuses/{sha}","languages_url":"https://api.github.com/repos/AC-CodeProd/ws-api/languages","stargazers_url":"https://api.github.com/repos/AC-CodeProd/ws-api/stargazers","contributors_url":"https://api.github.com/repos/AC-CodeProd/ws-api/contributors","subscribers_url":"https://api.github.com/repos/AC-CodeProd/ws-api/subscribers","subscription_url":"https://api.github.com/repos/AC-CodeProd/ws-api/subscription","commits_url":"https://api.github.com/repos/AC-CodeProd/ws-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/AC-CodeProd/ws-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/AC-CodeProd/ws-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/AC-CodeProd/ws-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/AC-CodeProd/ws-api/contents/{+path}","compare_url":"https://api.github.com/repos/AC-CodeProd/ws-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AC-CodeProd/ws-api/merges","archive_url":"https://api.github.com/repos/AC-CodeProd/ws-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AC-CodeProd/ws-api/downloads","issues_url":"https://api.github.com/repos/AC-CodeProd/ws-api/issues{/number}","pulls_url":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls{/number}","milestones_url":"https://api.github.com/repos/AC-CodeProd/ws-api/milestones{/number}","notifications_url":"https://api.github.com/repos/AC-CodeProd/ws-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AC-CodeProd/ws-api/labels{/name}","releases_url":"https://api.github.com/repos/AC-CodeProd/ws-api/releases{/id}","created_at":"2015-01-29T20:14:42Z","updated_at":"2015-02-20T22:44:20Z","pushed_at":"2015-03-25T08:37:48Z","git_url":"git://github.com/AC-CodeProd/ws-api.git","ssh_url":"git@github.com:AC-CodeProd/ws-api.git","clone_url":"https://github.com/AC-CodeProd/ws-api.git","svn_url":"https://github.com/AC-CodeProd/ws-api","homepage":null,"size":296,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls/1"},"html":{"href":"https://github.com/AC-CodeProd/ws-api/pull/1"},"issue":{"href":"https://api.github.com/repos/AC-CodeProd/ws-api/issues/1"},"comments":{"href":"https://api.github.com/repos/AC-CodeProd/ws-api/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AC-CodeProd/ws-api/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/AC-CodeProd/ws-api/statuses/2a385f4427f519316c9f1aab8117196137956ea6"}}}}