{"action":"created","comment":{"url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/pulls/comments/59080724","id":59080724,"diff_hunk":"@@ -51,10 +48,43 @@ public Response getUserByName(@PathParam(\"name\") String name) {\n     @Consumes(MediaType.APPLICATION_JSON)\n     @Produces(MediaType.APPLICATION_JSON)\n     public Response createUser(User user) {\n-        if (accountService.addUser(user) == 0L) {\n+\n+        if (accountService.addUser(user) != 0L) {\n             return Response.status(Response.Status.OK).entity(user.getLogin()).build();\n         } else {\n             return Response.status(Response.Status.FORBIDDEN).build();\n         }\n+\n+    }\n+    @POST\n+    @Path(\"{name}\")\n+    @Consumes(MediaType.APPLICATION_JSON)\n+    @Produces(MediaType.APPLICATION_JSON)\n+    public Response updateUser(@PathParam(\"name\") Long name, User user) {\n+        if (accountService.changeUser(user)) {\n+            return Response.status(Response.Status.OK).entity(user.getId()).build();\n+        } else {\n+            return Response.status(Response.Status.FORBIDDEN).build();\n+        }\n+    }\n+\n+    @DELETE\n+    @Path(\"{name}\")\n+    @Produces(MediaType.APPLICATION_JSON)\n+    public Response removeUser(@PathParam(\"name\") Long username) {\n+\n+        if (accountService.removeUser(username)) {\n+            return Response.status(Response.Status.OK).build();\n+        }\n+        else return Response.status(Response.Status.FORBIDDEN).build();\n+    }\n+\n+    @GET\n+    @Path(\"/totalScores\")\n+    @Produces(MediaType.APPLICATION_JSON)\n+    public Response showScoreTable() {\n+        LOGGER.error(\"[*] Getting scoreboard...\");","path":"src/main/java/server/rest/UserServlet.java","position":86,"original_position":86,"commit_id":"ecbedbca915846d1c8082b2a04fb43c5ade0681f","original_commit_id":"ecbedbca915846d1c8082b2a04fb43c5ade0681f","user":{"login":"KSolovyev","id":4122313,"avatar_url":"https://avatars.githubusercontent.com/u/4122313?v=3","gravatar_id":"","url":"https://api.github.com/users/KSolovyev","html_url":"https://github.com/KSolovyev","followers_url":"https://api.github.com/users/KSolovyev/followers","following_url":"https://api.github.com/users/KSolovyev/following{/other_user}","gists_url":"https://api.github.com/users/KSolovyev/gists{/gist_id}","starred_url":"https://api.github.com/users/KSolovyev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KSolovyev/subscriptions","organizations_url":"https://api.github.com/users/KSolovyev/orgs","repos_url":"https://api.github.com/users/KSolovyev/repos","events_url":"https://api.github.com/users/KSolovyev/events{/privacy}","received_events_url":"https://api.github.com/users/KSolovyev/received_events","type":"User","site_admin":false},"body":"LOGGER.info","created_at":"2016-04-08T19:57:09Z","updated_at":"2016-04-08T19:57:09Z","html_url":"https://github.com/java-park-mail-ru/2016-02-Lime-Pineapple/pull/8#discussion_r59080724","pull_request_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/pulls/comments/59080724"},"html":{"href":"https://github.com/java-park-mail-ru/2016-02-Lime-Pineapple/pull/8#discussion_r59080724"},"pull_request":{"href":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/pulls/8","id":65804962,"html_url":"https://github.com/java-park-mail-ru/2016-02-Lime-Pineapple/pull/8","diff_url":"https://github.com/java-park-mail-ru/2016-02-Lime-Pineapple/pull/8.diff","patch_url":"https://github.com/java-park-mail-ru/2016-02-Lime-Pineapple/pull/8.patch","issue_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/issues/8","number":8,"state":"open","locked":false,"title":"hibernation and bin-validation","user":{"login":"Igor1711","id":15969108,"avatar_url":"https://avatars.githubusercontent.com/u/15969108?v=3","gravatar_id":"","url":"https://api.github.com/users/Igor1711","html_url":"https://github.com/Igor1711","followers_url":"https://api.github.com/users/Igor1711/followers","following_url":"https://api.github.com/users/Igor1711/following{/other_user}","gists_url":"https://api.github.com/users/Igor1711/gists{/gist_id}","starred_url":"https://api.github.com/users/Igor1711/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Igor1711/subscriptions","organizations_url":"https://api.github.com/users/Igor1711/orgs","repos_url":"https://api.github.com/users/Igor1711/repos","events_url":"https://api.github.com/users/Igor1711/events{/privacy}","received_events_url":"https://api.github.com/users/Igor1711/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-08T15:37:09Z","updated_at":"2016-04-08T19:57:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2ea0e49c0b38ee739422dfd1724e3f55ce50099","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/pulls/8/commits","review_comments_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/pulls/8/comments","review_comment_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/pulls/comments{/number}","comments_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/issues/8/comments","statuses_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/statuses/ecbedbca915846d1c8082b2a04fb43c5ade0681f","head":{"label":"Igor1711:master","ref":"master","sha":"ecbedbca915846d1c8082b2a04fb43c5ade0681f","user":{"login":"Igor1711","id":15969108,"avatar_url":"https://avatars.githubusercontent.com/u/15969108?v=3","gravatar_id":"","url":"https://api.github.com/users/Igor1711","html_url":"https://github.com/Igor1711","followers_url":"https://api.github.com/users/Igor1711/followers","following_url":"https://api.github.com/users/Igor1711/following{/other_user}","gists_url":"https://api.github.com/users/Igor1711/gists{/gist_id}","starred_url":"https://api.github.com/users/Igor1711/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Igor1711/subscriptions","organizations_url":"https://api.github.com/users/Igor1711/orgs","repos_url":"https://api.github.com/users/Igor1711/repos","events_url":"https://api.github.com/users/Igor1711/events{/privacy}","received_events_url":"https://api.github.com/users/Igor1711/received_events","type":"User","site_admin":false},"repo":{"id":53149562,"name":"2016-02-Lime-Pineapple","full_name":"Igor1711/2016-02-Lime-Pineapple","owner":{"login":"Igor1711","id":15969108,"avatar_url":"https://avatars.githubusercontent.com/u/15969108?v=3","gravatar_id":"","url":"https://api.github.com/users/Igor1711","html_url":"https://github.com/Igor1711","followers_url":"https://api.github.com/users/Igor1711/followers","following_url":"https://api.github.com/users/Igor1711/following{/other_user}","gists_url":"https://api.github.com/users/Igor1711/gists{/gist_id}","starred_url":"https://api.github.com/users/Igor1711/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Igor1711/subscriptions","organizations_url":"https://api.github.com/users/Igor1711/orgs","repos_url":"https://api.github.com/users/Igor1711/repos","events_url":"https://api.github.com/users/Igor1711/events{/privacy}","received_events_url":"https://api.github.com/users/Igor1711/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Igor1711/2016-02-Lime-Pineapple","description":"мультиплеерный whack-a-mole","fork":true,"url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple","forks_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/forks","keys_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/teams","hooks_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/hooks","issue_events_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/issues/events{/number}","events_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/events","assignees_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/assignees{/user}","branches_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/branches{/branch}","tags_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/tags","blobs_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/git/refs{/sha}","trees_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/statuses/{sha}","languages_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/languages","stargazers_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/stargazers","contributors_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/contributors","subscribers_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/subscribers","subscription_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/subscription","commits_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/commits{/sha}","git_commits_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/git/commits{/sha}","comments_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/comments{/number}","issue_comment_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/issues/comments{/number}","contents_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/contents/{+path}","compare_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/merges","archive_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/downloads","issues_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/issues{/number}","pulls_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/pulls{/number}","milestones_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/milestones{/number}","notifications_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/labels{/name}","releases_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/releases{/id}","deployments_url":"https://api.github.com/repos/Igor1711/2016-02-Lime-Pineapple/deployments","created_at":"2016-03-04T16:35:48Z","updated_at":"2016-03-06T06:24:57Z","pushed_at":"2016-04-08T14:08:50Z","git_url":"git://github.com/Igor1711/2016-02-Lime-Pineapple.git","ssh_url":"git@github.com:Igor1711/2016-02-Lime-Pineapple.git","clone_url":"https://github.com/Igor1711/2016-02-Lime-Pineapple.git","svn_url":"https://github.com/Igor1711/2016-02-Lime-Pineapple","homepage":null,"size":599,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"java-park-mail-ru:master","ref":"master","sha":"e64c426c8c2c6aa7af1ec99417d85fe24c1fbc53","user":{"login":"java-park-mail-ru","id":17194939,"avatar_url":"https://avatars.githubusercontent.com/u/17194939?v=3","gravatar_id":"","url":"https://api.github.com/users/java-park-mail-ru","html_url":"https://github.com/java-park-mail-ru","followers_url":"https://api.github.com/users/java-park-mail-ru/followers","following_url":"https://api.github.com/users/java-park-mail-ru/following{/other_user}","gists_url":"https://api.github.com/users/java-park-mail-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/java-park-mail-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java-park-mail-ru/subscriptions","organizations_url":"https://api.github.com/users/java-park-mail-ru/orgs","repos_url":"https://api.github.com/users/java-park-mail-ru/repos","events_url":"https://api.github.com/users/java-park-mail-ru/events{/privacy}","received_events_url":"https://api.github.com/users/java-park-mail-ru/received_events","type":"Organization","site_admin":false},"repo":{"id":51638114,"name":"2016-02-Lime-Pineapple","full_name":"java-park-mail-ru/2016-02-Lime-Pineapple","owner":{"login":"java-park-mail-ru","id":17194939,"avatar_url":"https://avatars.githubusercontent.com/u/17194939?v=3","gravatar_id":"","url":"https://api.github.com/users/java-park-mail-ru","html_url":"https://github.com/java-park-mail-ru","followers_url":"https://api.github.com/users/java-park-mail-ru/followers","following_url":"https://api.github.com/users/java-park-mail-ru/following{/other_user}","gists_url":"https://api.github.com/users/java-park-mail-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/java-park-mail-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java-park-mail-ru/subscriptions","organizations_url":"https://api.github.com/users/java-park-mail-ru/orgs","repos_url":"https://api.github.com/users/java-park-mail-ru/repos","events_url":"https://api.github.com/users/java-park-mail-ru/events{/privacy}","received_events_url":"https://api.github.com/users/java-park-mail-ru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/java-park-mail-ru/2016-02-Lime-Pineapple","description":"мультиплеерный whack-a-mole","fork":false,"url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple","forks_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/forks","keys_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/keys{/key_id}","collaborators_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/teams","hooks_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/hooks","issue_events_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/issues/events{/number}","events_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/events","assignees_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/assignees{/user}","branches_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/branches{/branch}","tags_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/tags","blobs_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/git/refs{/sha}","trees_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/git/trees{/sha}","statuses_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/statuses/{sha}","languages_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/languages","stargazers_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/stargazers","contributors_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/contributors","subscribers_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/subscribers","subscription_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/subscription","commits_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/commits{/sha}","git_commits_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/git/commits{/sha}","comments_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/comments{/number}","issue_comment_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/issues/comments{/number}","contents_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/contents/{+path}","compare_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/compare/{base}...{head}","merges_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/merges","archive_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/downloads","issues_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/issues{/number}","pulls_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/pulls{/number}","milestones_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/milestones{/number}","notifications_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/labels{/name}","releases_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/releases{/id}","deployments_url":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/deployments","created_at":"2016-02-13T08:22:19Z","updated_at":"2016-03-16T12:30:42Z","pushed_at":"2016-04-08T15:37:09Z","git_url":"git://github.com/java-park-mail-ru/2016-02-Lime-Pineapple.git","ssh_url":"git@github.com:java-park-mail-ru/2016-02-Lime-Pineapple.git","clone_url":"https://github.com/java-park-mail-ru/2016-02-Lime-Pineapple.git","svn_url":"https://github.com/java-park-mail-ru/2016-02-Lime-Pineapple","homepage":null,"size":544,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/pulls/8"},"html":{"href":"https://github.com/java-park-mail-ru/2016-02-Lime-Pineapple/pull/8"},"issue":{"href":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/issues/8"},"comments":{"href":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/java-park-mail-ru/2016-02-Lime-Pineapple/statuses/ecbedbca915846d1c8082b2a04fb43c5ade0681f"}}}}