{"action":"created","comment":{"url":"https://api.github.com/repos/vassaeve/rmis/pulls/comments/75728833","id":75728833,"diff_hunk":"@@ -0,0 +1,62 @@\n+package ru.dz.rmis.controller;\n+\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.stereotype.Controller;\n+import org.springframework.web.HttpRequestHandler;\n+import org.springframework.web.bind.annotation.PathVariable;\n+import org.springframework.web.bind.annotation.RequestMapping;\n+import org.springframework.web.bind.annotation.RequestMethod;\n+import org.springframework.web.bind.annotation.RequestParam;\n+import ru.dz.rmis.model.Filter;\n+import ru.dz.rmis.service.FilterService;\n+\n+import javax.servlet.http.HttpServletRequest;\n+\n+@Controller\n+@RequestMapping(\"/filters\")\n+public class FilterController {\n+\n+    @Autowired\n+    private HttpServletRequest request;\n+\n+    @Autowired\n+    private FilterService filterService;\n+\n+    @RequestMapping(method = RequestMethod.GET)\n+    public String filters () {\n+        request.setAttribute(\"filters\", filterService.findAll());\n+        return \"filters\";\n+    }\n+\n+    @RequestMapping(value = \"/new\", method = RequestMethod.POST)\n+    public String add(@RequestParam String name, @RequestParam String className) {\n+        Filter filter = new Filter(name, className);\n+        filterService.save(filter);\n+        return \"redirect:/filters\";\n+    }\n+\n+    @RequestMapping(value = \"/{id}/remove\", method = RequestMethod.DELETE)","path":"src/main/java/ru/dz/rmis/controller/FilterController.java","position":38,"original_position":38,"commit_id":"f069cd38ede0214e1f5e4f39ce5a994c03a448f9","original_commit_id":"f069cd38ede0214e1f5e4f39ce5a994c03a448f9","user":{"login":"alex-kel","id":7020918,"avatar_url":"https://avatars.githubusercontent.com/u/7020918?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-kel","html_url":"https://github.com/alex-kel","followers_url":"https://api.github.com/users/alex-kel/followers","following_url":"https://api.github.com/users/alex-kel/following{/other_user}","gists_url":"https://api.github.com/users/alex-kel/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-kel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-kel/subscriptions","organizations_url":"https://api.github.com/users/alex-kel/orgs","repos_url":"https://api.github.com/users/alex-kel/repos","events_url":"https://api.github.com/users/alex-kel/events{/privacy}","received_events_url":"https://api.github.com/users/alex-kel/received_events","type":"User","site_admin":false},"body":"delete на /{id} достаточно","created_at":"2016-08-22T18:12:39Z","updated_at":"2016-08-22T18:12:39Z","html_url":"https://github.com/vassaeve/rmis/pull/1#discussion_r75728833","pull_request_url":"https://api.github.com/repos/vassaeve/rmis/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/vassaeve/rmis/pulls/comments/75728833"},"html":{"href":"https://github.com/vassaeve/rmis/pull/1#discussion_r75728833"},"pull_request":{"href":"https://api.github.com/repos/vassaeve/rmis/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/vassaeve/rmis/pulls/1","id":82236114,"html_url":"https://github.com/vassaeve/rmis/pull/1","diff_url":"https://github.com/vassaeve/rmis/pull/1.diff","patch_url":"https://github.com/vassaeve/rmis/pull/1.patch","issue_url":"https://api.github.com/repos/vassaeve/rmis/issues/1","number":1,"state":"open","locked":false,"title":"Filter","user":{"login":"alex-kel","id":7020918,"avatar_url":"https://avatars.githubusercontent.com/u/7020918?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-kel","html_url":"https://github.com/alex-kel","followers_url":"https://api.github.com/users/alex-kel/followers","following_url":"https://api.github.com/users/alex-kel/following{/other_user}","gists_url":"https://api.github.com/users/alex-kel/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-kel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-kel/subscriptions","organizations_url":"https://api.github.com/users/alex-kel/orgs","repos_url":"https://api.github.com/users/alex-kel/repos","events_url":"https://api.github.com/users/alex-kel/events{/privacy}","received_events_url":"https://api.github.com/users/alex-kel/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-22T18:06:44Z","updated_at":"2016-08-22T18:12:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9059f14ad6d690fbc9c1f62318544c9c700a4c5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vassaeve/rmis/pulls/1/commits","review_comments_url":"https://api.github.com/repos/vassaeve/rmis/pulls/1/comments","review_comment_url":"https://api.github.com/repos/vassaeve/rmis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vassaeve/rmis/issues/1/comments","statuses_url":"https://api.github.com/repos/vassaeve/rmis/statuses/f069cd38ede0214e1f5e4f39ce5a994c03a448f9","head":{"label":"vassaeve:filter","ref":"filter","sha":"f069cd38ede0214e1f5e4f39ce5a994c03a448f9","user":{"login":"vassaeve","id":18206808,"avatar_url":"https://avatars.githubusercontent.com/u/18206808?v=3","gravatar_id":"","url":"https://api.github.com/users/vassaeve","html_url":"https://github.com/vassaeve","followers_url":"https://api.github.com/users/vassaeve/followers","following_url":"https://api.github.com/users/vassaeve/following{/other_user}","gists_url":"https://api.github.com/users/vassaeve/gists{/gist_id}","starred_url":"https://api.github.com/users/vassaeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vassaeve/subscriptions","organizations_url":"https://api.github.com/users/vassaeve/orgs","repos_url":"https://api.github.com/users/vassaeve/repos","events_url":"https://api.github.com/users/vassaeve/events{/privacy}","received_events_url":"https://api.github.com/users/vassaeve/received_events","type":"User","site_admin":false},"repo":{"id":65851225,"name":"rmis","full_name":"vassaeve/rmis","owner":{"login":"vassaeve","id":18206808,"avatar_url":"https://avatars.githubusercontent.com/u/18206808?v=3","gravatar_id":"","url":"https://api.github.com/users/vassaeve","html_url":"https://github.com/vassaeve","followers_url":"https://api.github.com/users/vassaeve/followers","following_url":"https://api.github.com/users/vassaeve/following{/other_user}","gists_url":"https://api.github.com/users/vassaeve/gists{/gist_id}","starred_url":"https://api.github.com/users/vassaeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vassaeve/subscriptions","organizations_url":"https://api.github.com/users/vassaeve/orgs","repos_url":"https://api.github.com/users/vassaeve/repos","events_url":"https://api.github.com/users/vassaeve/events{/privacy}","received_events_url":"https://api.github.com/users/vassaeve/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vassaeve/rmis","description":null,"fork":false,"url":"https://api.github.com/repos/vassaeve/rmis","forks_url":"https://api.github.com/repos/vassaeve/rmis/forks","keys_url":"https://api.github.com/repos/vassaeve/rmis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vassaeve/rmis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vassaeve/rmis/teams","hooks_url":"https://api.github.com/repos/vassaeve/rmis/hooks","issue_events_url":"https://api.github.com/repos/vassaeve/rmis/issues/events{/number}","events_url":"https://api.github.com/repos/vassaeve/rmis/events","assignees_url":"https://api.github.com/repos/vassaeve/rmis/assignees{/user}","branches_url":"https://api.github.com/repos/vassaeve/rmis/branches{/branch}","tags_url":"https://api.github.com/repos/vassaeve/rmis/tags","blobs_url":"https://api.github.com/repos/vassaeve/rmis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vassaeve/rmis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vassaeve/rmis/git/refs{/sha}","trees_url":"https://api.github.com/repos/vassaeve/rmis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vassaeve/rmis/statuses/{sha}","languages_url":"https://api.github.com/repos/vassaeve/rmis/languages","stargazers_url":"https://api.github.com/repos/vassaeve/rmis/stargazers","contributors_url":"https://api.github.com/repos/vassaeve/rmis/contributors","subscribers_url":"https://api.github.com/repos/vassaeve/rmis/subscribers","subscription_url":"https://api.github.com/repos/vassaeve/rmis/subscription","commits_url":"https://api.github.com/repos/vassaeve/rmis/commits{/sha}","git_commits_url":"https://api.github.com/repos/vassaeve/rmis/git/commits{/sha}","comments_url":"https://api.github.com/repos/vassaeve/rmis/comments{/number}","issue_comment_url":"https://api.github.com/repos/vassaeve/rmis/issues/comments{/number}","contents_url":"https://api.github.com/repos/vassaeve/rmis/contents/{+path}","compare_url":"https://api.github.com/repos/vassaeve/rmis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vassaeve/rmis/merges","archive_url":"https://api.github.com/repos/vassaeve/rmis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vassaeve/rmis/downloads","issues_url":"https://api.github.com/repos/vassaeve/rmis/issues{/number}","pulls_url":"https://api.github.com/repos/vassaeve/rmis/pulls{/number}","milestones_url":"https://api.github.com/repos/vassaeve/rmis/milestones{/number}","notifications_url":"https://api.github.com/repos/vassaeve/rmis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vassaeve/rmis/labels{/name}","releases_url":"https://api.github.com/repos/vassaeve/rmis/releases{/id}","deployments_url":"https://api.github.com/repos/vassaeve/rmis/deployments","created_at":"2016-08-16T20:26:07Z","updated_at":"2016-08-17T07:31:47Z","pushed_at":"2016-08-22T18:06:44Z","git_url":"git://github.com/vassaeve/rmis.git","ssh_url":"git@github.com:vassaeve/rmis.git","clone_url":"https://github.com/vassaeve/rmis.git","svn_url":"https://github.com/vassaeve/rmis","homepage":null,"size":314,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"vassaeve:master","ref":"master","sha":"9081eb48fc1af0ffcfac4b87b5d55a8ec25e9c85","user":{"login":"vassaeve","id":18206808,"avatar_url":"https://avatars.githubusercontent.com/u/18206808?v=3","gravatar_id":"","url":"https://api.github.com/users/vassaeve","html_url":"https://github.com/vassaeve","followers_url":"https://api.github.com/users/vassaeve/followers","following_url":"https://api.github.com/users/vassaeve/following{/other_user}","gists_url":"https://api.github.com/users/vassaeve/gists{/gist_id}","starred_url":"https://api.github.com/users/vassaeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vassaeve/subscriptions","organizations_url":"https://api.github.com/users/vassaeve/orgs","repos_url":"https://api.github.com/users/vassaeve/repos","events_url":"https://api.github.com/users/vassaeve/events{/privacy}","received_events_url":"https://api.github.com/users/vassaeve/received_events","type":"User","site_admin":false},"repo":{"id":65851225,"name":"rmis","full_name":"vassaeve/rmis","owner":{"login":"vassaeve","id":18206808,"avatar_url":"https://avatars.githubusercontent.com/u/18206808?v=3","gravatar_id":"","url":"https://api.github.com/users/vassaeve","html_url":"https://github.com/vassaeve","followers_url":"https://api.github.com/users/vassaeve/followers","following_url":"https://api.github.com/users/vassaeve/following{/other_user}","gists_url":"https://api.github.com/users/vassaeve/gists{/gist_id}","starred_url":"https://api.github.com/users/vassaeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vassaeve/subscriptions","organizations_url":"https://api.github.com/users/vassaeve/orgs","repos_url":"https://api.github.com/users/vassaeve/repos","events_url":"https://api.github.com/users/vassaeve/events{/privacy}","received_events_url":"https://api.github.com/users/vassaeve/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vassaeve/rmis","description":null,"fork":false,"url":"https://api.github.com/repos/vassaeve/rmis","forks_url":"https://api.github.com/repos/vassaeve/rmis/forks","keys_url":"https://api.github.com/repos/vassaeve/rmis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vassaeve/rmis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vassaeve/rmis/teams","hooks_url":"https://api.github.com/repos/vassaeve/rmis/hooks","issue_events_url":"https://api.github.com/repos/vassaeve/rmis/issues/events{/number}","events_url":"https://api.github.com/repos/vassaeve/rmis/events","assignees_url":"https://api.github.com/repos/vassaeve/rmis/assignees{/user}","branches_url":"https://api.github.com/repos/vassaeve/rmis/branches{/branch}","tags_url":"https://api.github.com/repos/vassaeve/rmis/tags","blobs_url":"https://api.github.com/repos/vassaeve/rmis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vassaeve/rmis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vassaeve/rmis/git/refs{/sha}","trees_url":"https://api.github.com/repos/vassaeve/rmis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vassaeve/rmis/statuses/{sha}","languages_url":"https://api.github.com/repos/vassaeve/rmis/languages","stargazers_url":"https://api.github.com/repos/vassaeve/rmis/stargazers","contributors_url":"https://api.github.com/repos/vassaeve/rmis/contributors","subscribers_url":"https://api.github.com/repos/vassaeve/rmis/subscribers","subscription_url":"https://api.github.com/repos/vassaeve/rmis/subscription","commits_url":"https://api.github.com/repos/vassaeve/rmis/commits{/sha}","git_commits_url":"https://api.github.com/repos/vassaeve/rmis/git/commits{/sha}","comments_url":"https://api.github.com/repos/vassaeve/rmis/comments{/number}","issue_comment_url":"https://api.github.com/repos/vassaeve/rmis/issues/comments{/number}","contents_url":"https://api.github.com/repos/vassaeve/rmis/contents/{+path}","compare_url":"https://api.github.com/repos/vassaeve/rmis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vassaeve/rmis/merges","archive_url":"https://api.github.com/repos/vassaeve/rmis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vassaeve/rmis/downloads","issues_url":"https://api.github.com/repos/vassaeve/rmis/issues{/number}","pulls_url":"https://api.github.com/repos/vassaeve/rmis/pulls{/number}","milestones_url":"https://api.github.com/repos/vassaeve/rmis/milestones{/number}","notifications_url":"https://api.github.com/repos/vassaeve/rmis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vassaeve/rmis/labels{/name}","releases_url":"https://api.github.com/repos/vassaeve/rmis/releases{/id}","deployments_url":"https://api.github.com/repos/vassaeve/rmis/deployments","created_at":"2016-08-16T20:26:07Z","updated_at":"2016-08-17T07:31:47Z","pushed_at":"2016-08-22T18:06:44Z","git_url":"git://github.com/vassaeve/rmis.git","ssh_url":"git@github.com:vassaeve/rmis.git","clone_url":"https://github.com/vassaeve/rmis.git","svn_url":"https://github.com/vassaeve/rmis","homepage":null,"size":314,"stargazers_count":0,"watchers_count":0,"language":"Java","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/vassaeve/rmis/pulls/1"},"html":{"href":"https://github.com/vassaeve/rmis/pull/1"},"issue":{"href":"https://api.github.com/repos/vassaeve/rmis/issues/1"},"comments":{"href":"https://api.github.com/repos/vassaeve/rmis/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/vassaeve/rmis/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/vassaeve/rmis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vassaeve/rmis/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/vassaeve/rmis/statuses/f069cd38ede0214e1f5e4f39ce5a994c03a448f9"}}}}
{"actor":{"display_login":"alex-kel"}}