{"action":"created","comment":{"url":"https://api.github.com/repos/EPAMMogilev/idea/pulls/comments/27476573","id":27476573,"diff_hunk":"@@ -1,7 +1,38 @@\n package com.epam.idea.rest.controller;\n \n+import java.util.List;\n+\n+import com.epam.idea.core.model.Tag;\n+import com.epam.idea.core.service.TagService;\n+import com.epam.idea.rest.resource.TagResource;\n+import com.epam.idea.rest.resource.asm.TagResourceAsm;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.http.HttpEntity;\n+import org.springframework.http.HttpStatus;\n+import org.springframework.http.ResponseEntity;\n import org.springframework.stereotype.Controller;\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 \n @Controller\n+@RequestMapping(\"/api/v1/tags\")\n public class TagController {\n+\n+    @Autowired\n+    private TagService tagService;\n+\n+    @RequestMapping(value = \"/{tagId}\", method = RequestMethod.GET)\n+    public HttpEntity<TagResource> showTag(@PathVariable final long tagId) {\n+        Tag foundTag = tagService.findOne(tagId);","path":"src/main/java/com/epam/idea/rest/controller/TagController.java","position":27,"original_position":27,"commit_id":"16ca4fafd6e77f0e7fce79c387342e192d20062f","original_commit_id":"16ca4fafd6e77f0e7fce79c387342e192d20062f","user":{"login":"DzmitryShylovich","id":9335533,"avatar_url":"https://avatars.githubusercontent.com/u/9335533?v=3","gravatar_id":"","url":"https://api.github.com/users/DzmitryShylovich","html_url":"https://github.com/DzmitryShylovich","followers_url":"https://api.github.com/users/DzmitryShylovich/followers","following_url":"https://api.github.com/users/DzmitryShylovich/following{/other_user}","gists_url":"https://api.github.com/users/DzmitryShylovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitryShylovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitryShylovich/subscriptions","organizations_url":"https://api.github.com/users/DzmitryShylovich/orgs","repos_url":"https://api.github.com/users/DzmitryShylovich/repos","events_url":"https://api.github.com/users/DzmitryShylovich/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitryShylovich/received_events","type":"User","site_admin":false},"body":"[A field of a class should always be referenced using this.](https://github.com/EPAMMogilev/idea/wiki/Java-Code-Style-Guideline#field-and-method-references)","created_at":"2015-03-31T13:08:51Z","updated_at":"2015-03-31T13:08:51Z","html_url":"https://github.com/EPAMMogilev/idea/pull/22#discussion_r27476573","pull_request_url":"https://api.github.com/repos/EPAMMogilev/idea/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/EPAMMogilev/idea/pulls/comments/27476573"},"html":{"href":"https://github.com/EPAMMogilev/idea/pull/22#discussion_r27476573"},"pull_request":{"href":"https://api.github.com/repos/EPAMMogilev/idea/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/EPAMMogilev/idea/pulls/22","id":32313412,"html_url":"https://github.com/EPAMMogilev/idea/pull/22","diff_url":"https://github.com/EPAMMogilev/idea/pull/22.diff","patch_url":"https://github.com/EPAMMogilev/idea/pull/22.patch","issue_url":"https://api.github.com/repos/EPAMMogilev/idea/issues/22","number":22,"state":"open","locked":false,"title":"Feature/tag controller","user":{"login":"LostFan","id":1761270,"avatar_url":"https://avatars.githubusercontent.com/u/1761270?v=3","gravatar_id":"","url":"https://api.github.com/users/LostFan","html_url":"https://github.com/LostFan","followers_url":"https://api.github.com/users/LostFan/followers","following_url":"https://api.github.com/users/LostFan/following{/other_user}","gists_url":"https://api.github.com/users/LostFan/gists{/gist_id}","starred_url":"https://api.github.com/users/LostFan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LostFan/subscriptions","organizations_url":"https://api.github.com/users/LostFan/orgs","repos_url":"https://api.github.com/users/LostFan/repos","events_url":"https://api.github.com/users/LostFan/events{/privacy}","received_events_url":"https://api.github.com/users/LostFan/received_events","type":"User","site_admin":false},"body":"Was added TagController class and test classes for it. ","created_at":"2015-03-31T11:33:00Z","updated_at":"2015-03-31T13:08:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b99ee4195871a1e3c66d34b7e4589c4664c68dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/EPAMMogilev/idea/pulls/22/commits","review_comments_url":"https://api.github.com/repos/EPAMMogilev/idea/pulls/22/comments","review_comment_url":"https://api.github.com/repos/EPAMMogilev/idea/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EPAMMogilev/idea/issues/22/comments","statuses_url":"https://api.github.com/repos/EPAMMogilev/idea/statuses/16ca4fafd6e77f0e7fce79c387342e192d20062f","head":{"label":"EPAMMogilev:feature/tag_controller","ref":"feature/tag_controller","sha":"16ca4fafd6e77f0e7fce79c387342e192d20062f","user":{"login":"EPAMMogilev","id":11058112,"avatar_url":"https://avatars.githubusercontent.com/u/11058112?v=3","gravatar_id":"","url":"https://api.github.com/users/EPAMMogilev","html_url":"https://github.com/EPAMMogilev","followers_url":"https://api.github.com/users/EPAMMogilev/followers","following_url":"https://api.github.com/users/EPAMMogilev/following{/other_user}","gists_url":"https://api.github.com/users/EPAMMogilev/gists{/gist_id}","starred_url":"https://api.github.com/users/EPAMMogilev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EPAMMogilev/subscriptions","organizations_url":"https://api.github.com/users/EPAMMogilev/orgs","repos_url":"https://api.github.com/users/EPAMMogilev/repos","events_url":"https://api.github.com/users/EPAMMogilev/events{/privacy}","received_events_url":"https://api.github.com/users/EPAMMogilev/received_events","type":"Organization","site_admin":false},"repo":{"id":30964392,"name":"idea","full_name":"EPAMMogilev/idea","owner":{"login":"EPAMMogilev","id":11058112,"avatar_url":"https://avatars.githubusercontent.com/u/11058112?v=3","gravatar_id":"","url":"https://api.github.com/users/EPAMMogilev","html_url":"https://github.com/EPAMMogilev","followers_url":"https://api.github.com/users/EPAMMogilev/followers","following_url":"https://api.github.com/users/EPAMMogilev/following{/other_user}","gists_url":"https://api.github.com/users/EPAMMogilev/gists{/gist_id}","starred_url":"https://api.github.com/users/EPAMMogilev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EPAMMogilev/subscriptions","organizations_url":"https://api.github.com/users/EPAMMogilev/orgs","repos_url":"https://api.github.com/users/EPAMMogilev/repos","events_url":"https://api.github.com/users/EPAMMogilev/events{/privacy}","received_events_url":"https://api.github.com/users/EPAMMogilev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EPAMMogilev/idea","description":"Idea App","fork":false,"url":"https://api.github.com/repos/EPAMMogilev/idea","forks_url":"https://api.github.com/repos/EPAMMogilev/idea/forks","keys_url":"https://api.github.com/repos/EPAMMogilev/idea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EPAMMogilev/idea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EPAMMogilev/idea/teams","hooks_url":"https://api.github.com/repos/EPAMMogilev/idea/hooks","issue_events_url":"https://api.github.com/repos/EPAMMogilev/idea/issues/events{/number}","events_url":"https://api.github.com/repos/EPAMMogilev/idea/events","assignees_url":"https://api.github.com/repos/EPAMMogilev/idea/assignees{/user}","branches_url":"https://api.github.com/repos/EPAMMogilev/idea/branches{/branch}","tags_url":"https://api.github.com/repos/EPAMMogilev/idea/tags","blobs_url":"https://api.github.com/repos/EPAMMogilev/idea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EPAMMogilev/idea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EPAMMogilev/idea/git/refs{/sha}","trees_url":"https://api.github.com/repos/EPAMMogilev/idea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EPAMMogilev/idea/statuses/{sha}","languages_url":"https://api.github.com/repos/EPAMMogilev/idea/languages","stargazers_url":"https://api.github.com/repos/EPAMMogilev/idea/stargazers","contributors_url":"https://api.github.com/repos/EPAMMogilev/idea/contributors","subscribers_url":"https://api.github.com/repos/EPAMMogilev/idea/subscribers","subscription_url":"https://api.github.com/repos/EPAMMogilev/idea/subscription","commits_url":"https://api.github.com/repos/EPAMMogilev/idea/commits{/sha}","git_commits_url":"https://api.github.com/repos/EPAMMogilev/idea/git/commits{/sha}","comments_url":"https://api.github.com/repos/EPAMMogilev/idea/comments{/number}","issue_comment_url":"https://api.github.com/repos/EPAMMogilev/idea/issues/comments{/number}","contents_url":"https://api.github.com/repos/EPAMMogilev/idea/contents/{+path}","compare_url":"https://api.github.com/repos/EPAMMogilev/idea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EPAMMogilev/idea/merges","archive_url":"https://api.github.com/repos/EPAMMogilev/idea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EPAMMogilev/idea/downloads","issues_url":"https://api.github.com/repos/EPAMMogilev/idea/issues{/number}","pulls_url":"https://api.github.com/repos/EPAMMogilev/idea/pulls{/number}","milestones_url":"https://api.github.com/repos/EPAMMogilev/idea/milestones{/number}","notifications_url":"https://api.github.com/repos/EPAMMogilev/idea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EPAMMogilev/idea/labels{/name}","releases_url":"https://api.github.com/repos/EPAMMogilev/idea/releases{/id}","created_at":"2015-02-18T12:20:24Z","updated_at":"2015-02-20T13:53:23Z","pushed_at":"2015-03-31T12:26:01Z","git_url":"git://github.com/EPAMMogilev/idea.git","ssh_url":"git@github.com:EPAMMogilev/idea.git","clone_url":"https://github.com/EPAMMogilev/idea.git","svn_url":"https://github.com/EPAMMogilev/idea","homepage":null,"size":676,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"EPAMMogilev:develop","ref":"develop","sha":"b629d819e683c8eccbefd1bbd434874eab341943","user":{"login":"EPAMMogilev","id":11058112,"avatar_url":"https://avatars.githubusercontent.com/u/11058112?v=3","gravatar_id":"","url":"https://api.github.com/users/EPAMMogilev","html_url":"https://github.com/EPAMMogilev","followers_url":"https://api.github.com/users/EPAMMogilev/followers","following_url":"https://api.github.com/users/EPAMMogilev/following{/other_user}","gists_url":"https://api.github.com/users/EPAMMogilev/gists{/gist_id}","starred_url":"https://api.github.com/users/EPAMMogilev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EPAMMogilev/subscriptions","organizations_url":"https://api.github.com/users/EPAMMogilev/orgs","repos_url":"https://api.github.com/users/EPAMMogilev/repos","events_url":"https://api.github.com/users/EPAMMogilev/events{/privacy}","received_events_url":"https://api.github.com/users/EPAMMogilev/received_events","type":"Organization","site_admin":false},"repo":{"id":30964392,"name":"idea","full_name":"EPAMMogilev/idea","owner":{"login":"EPAMMogilev","id":11058112,"avatar_url":"https://avatars.githubusercontent.com/u/11058112?v=3","gravatar_id":"","url":"https://api.github.com/users/EPAMMogilev","html_url":"https://github.com/EPAMMogilev","followers_url":"https://api.github.com/users/EPAMMogilev/followers","following_url":"https://api.github.com/users/EPAMMogilev/following{/other_user}","gists_url":"https://api.github.com/users/EPAMMogilev/gists{/gist_id}","starred_url":"https://api.github.com/users/EPAMMogilev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EPAMMogilev/subscriptions","organizations_url":"https://api.github.com/users/EPAMMogilev/orgs","repos_url":"https://api.github.com/users/EPAMMogilev/repos","events_url":"https://api.github.com/users/EPAMMogilev/events{/privacy}","received_events_url":"https://api.github.com/users/EPAMMogilev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EPAMMogilev/idea","description":"Idea App","fork":false,"url":"https://api.github.com/repos/EPAMMogilev/idea","forks_url":"https://api.github.com/repos/EPAMMogilev/idea/forks","keys_url":"https://api.github.com/repos/EPAMMogilev/idea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EPAMMogilev/idea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EPAMMogilev/idea/teams","hooks_url":"https://api.github.com/repos/EPAMMogilev/idea/hooks","issue_events_url":"https://api.github.com/repos/EPAMMogilev/idea/issues/events{/number}","events_url":"https://api.github.com/repos/EPAMMogilev/idea/events","assignees_url":"https://api.github.com/repos/EPAMMogilev/idea/assignees{/user}","branches_url":"https://api.github.com/repos/EPAMMogilev/idea/branches{/branch}","tags_url":"https://api.github.com/repos/EPAMMogilev/idea/tags","blobs_url":"https://api.github.com/repos/EPAMMogilev/idea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EPAMMogilev/idea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EPAMMogilev/idea/git/refs{/sha}","trees_url":"https://api.github.com/repos/EPAMMogilev/idea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EPAMMogilev/idea/statuses/{sha}","languages_url":"https://api.github.com/repos/EPAMMogilev/idea/languages","stargazers_url":"https://api.github.com/repos/EPAMMogilev/idea/stargazers","contributors_url":"https://api.github.com/repos/EPAMMogilev/idea/contributors","subscribers_url":"https://api.github.com/repos/EPAMMogilev/idea/subscribers","subscription_url":"https://api.github.com/repos/EPAMMogilev/idea/subscription","commits_url":"https://api.github.com/repos/EPAMMogilev/idea/commits{/sha}","git_commits_url":"https://api.github.com/repos/EPAMMogilev/idea/git/commits{/sha}","comments_url":"https://api.github.com/repos/EPAMMogilev/idea/comments{/number}","issue_comment_url":"https://api.github.com/repos/EPAMMogilev/idea/issues/comments{/number}","contents_url":"https://api.github.com/repos/EPAMMogilev/idea/contents/{+path}","compare_url":"https://api.github.com/repos/EPAMMogilev/idea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EPAMMogilev/idea/merges","archive_url":"https://api.github.com/repos/EPAMMogilev/idea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EPAMMogilev/idea/downloads","issues_url":"https://api.github.com/repos/EPAMMogilev/idea/issues{/number}","pulls_url":"https://api.github.com/repos/EPAMMogilev/idea/pulls{/number}","milestones_url":"https://api.github.com/repos/EPAMMogilev/idea/milestones{/number}","notifications_url":"https://api.github.com/repos/EPAMMogilev/idea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EPAMMogilev/idea/labels{/name}","releases_url":"https://api.github.com/repos/EPAMMogilev/idea/releases{/id}","created_at":"2015-02-18T12:20:24Z","updated_at":"2015-02-20T13:53:23Z","pushed_at":"2015-03-31T12:26:01Z","git_url":"git://github.com/EPAMMogilev/idea.git","ssh_url":"git@github.com:EPAMMogilev/idea.git","clone_url":"https://github.com/EPAMMogilev/idea.git","svn_url":"https://github.com/EPAMMogilev/idea","homepage":null,"size":676,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EPAMMogilev/idea/pulls/22"},"html":{"href":"https://github.com/EPAMMogilev/idea/pull/22"},"issue":{"href":"https://api.github.com/repos/EPAMMogilev/idea/issues/22"},"comments":{"href":"https://api.github.com/repos/EPAMMogilev/idea/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/EPAMMogilev/idea/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/EPAMMogilev/idea/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EPAMMogilev/idea/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/EPAMMogilev/idea/statuses/16ca4fafd6e77f0e7fce79c387342e192d20062f"}}}}