{"action":"created","comment":{"url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls/comments/65177704","id":65177704,"diff_hunk":"@@ -0,0 +1,46 @@\n+package edu.softserve.zoo.controller.rest;\n+\n+\n+import edu.softserve.zoo.dto.TaskDto;\n+import edu.softserve.zoo.model.Task;\n+import edu.softserve.zoo.service.Service;\n+import edu.softserve.zoo.service.TaskService;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.web.bind.annotation.*;\n+\n+import java.util.List;\n+\n+import static edu.softserve.zoo.controller.rest.Routes.TASKS;\n+\n+/**\n+ * RestController implementation for {@link Task} entity.\n+ */\n+\n+@RestController\n+@RequestMapping(TASKS)\n+public class TasksController extends AbstractRestController<TaskDto, Task> {\n+\n+    @Autowired\n+    private TaskService taskService;\n+\n+    public TasksController() {\n+        super(Task.class);\n+    }\n+\n+    @RequestMapping(method = RequestMethod.GET, params = \"assigneeId\")\n+    public List<TaskDto> tasksGetAllByAssignee(@RequestParam(\"assigneeId\") Long assigneeId) {\n+        List<Task> taskList = taskService.taskGetAllByAssigneeId(assigneeId);","path":"web/src/main/java/edu/softserve/zoo/controller/rest/TasksController.java","position":32,"original_position":32,"commit_id":"6a666dc98d63f02c0262b0729ffd66062f03c61a","original_commit_id":"6a666dc98d63f02c0262b0729ffd66062f03c61a","user":{"login":"ITsvetkoFF","id":7273003,"avatar_url":"https://avatars.githubusercontent.com/u/7273003?v=3","gravatar_id":"","url":"https://api.github.com/users/ITsvetkoFF","html_url":"https://github.com/ITsvetkoFF","followers_url":"https://api.github.com/users/ITsvetkoFF/followers","following_url":"https://api.github.com/users/ITsvetkoFF/following{/other_user}","gists_url":"https://api.github.com/users/ITsvetkoFF/gists{/gist_id}","starred_url":"https://api.github.com/users/ITsvetkoFF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ITsvetkoFF/subscriptions","organizations_url":"https://api.github.com/users/ITsvetkoFF/orgs","repos_url":"https://api.github.com/users/ITsvetkoFF/repos","events_url":"https://api.github.com/users/ITsvetkoFF/events{/privacy}","received_events_url":"https://api.github.com/users/ITsvetkoFF/received_events","type":"User","site_admin":false},"body":"use validators","created_at":"2016-05-31T13:11:43Z","updated_at":"2016-05-31T13:11:43Z","html_url":"https://github.com/ITsvetkoFF/Kv-014/pull/131#discussion_r65177704","pull_request_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls/131","_links":{"self":{"href":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls/comments/65177704"},"html":{"href":"https://github.com/ITsvetkoFF/Kv-014/pull/131#discussion_r65177704"},"pull_request":{"href":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls/131"}}},"pull_request":{"url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls/131","id":72010772,"html_url":"https://github.com/ITsvetkoFF/Kv-014/pull/131","diff_url":"https://github.com/ITsvetkoFF/Kv-014/pull/131.diff","patch_url":"https://github.com/ITsvetkoFF/Kv-014/pull/131.patch","issue_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/issues/131","number":131,"state":"open","locked":false,"title":"Add basic REST controllers for Tasks","user":{"login":"JuliaAvdeionok","id":13066576,"avatar_url":"https://avatars.githubusercontent.com/u/13066576?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaAvdeionok","html_url":"https://github.com/JuliaAvdeionok","followers_url":"https://api.github.com/users/JuliaAvdeionok/followers","following_url":"https://api.github.com/users/JuliaAvdeionok/following{/other_user}","gists_url":"https://api.github.com/users/JuliaAvdeionok/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaAvdeionok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaAvdeionok/subscriptions","organizations_url":"https://api.github.com/users/JuliaAvdeionok/orgs","repos_url":"https://api.github.com/users/JuliaAvdeionok/repos","events_url":"https://api.github.com/users/JuliaAvdeionok/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaAvdeionok/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-31T12:58:25Z","updated_at":"2016-05-31T13:11:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b3edac2383e60ed0e69c71eb1709648809347903","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls/131/commits","review_comments_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls/131/comments","review_comment_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/issues/131/comments","statuses_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/statuses/6a666dc98d63f02c0262b0729ffd66062f03c61a","head":{"label":"ITsvetkoFF:feature/tasks-persistent","ref":"feature/tasks-persistent","sha":"6a666dc98d63f02c0262b0729ffd66062f03c61a","user":{"login":"ITsvetkoFF","id":7273003,"avatar_url":"https://avatars.githubusercontent.com/u/7273003?v=3","gravatar_id":"","url":"https://api.github.com/users/ITsvetkoFF","html_url":"https://github.com/ITsvetkoFF","followers_url":"https://api.github.com/users/ITsvetkoFF/followers","following_url":"https://api.github.com/users/ITsvetkoFF/following{/other_user}","gists_url":"https://api.github.com/users/ITsvetkoFF/gists{/gist_id}","starred_url":"https://api.github.com/users/ITsvetkoFF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ITsvetkoFF/subscriptions","organizations_url":"https://api.github.com/users/ITsvetkoFF/orgs","repos_url":"https://api.github.com/users/ITsvetkoFF/repos","events_url":"https://api.github.com/users/ITsvetkoFF/events{/privacy}","received_events_url":"https://api.github.com/users/ITsvetkoFF/received_events","type":"User","site_admin":false},"repo":{"id":55958203,"name":"Kv-014","full_name":"ITsvetkoFF/Kv-014","owner":{"login":"ITsvetkoFF","id":7273003,"avatar_url":"https://avatars.githubusercontent.com/u/7273003?v=3","gravatar_id":"","url":"https://api.github.com/users/ITsvetkoFF","html_url":"https://github.com/ITsvetkoFF","followers_url":"https://api.github.com/users/ITsvetkoFF/followers","following_url":"https://api.github.com/users/ITsvetkoFF/following{/other_user}","gists_url":"https://api.github.com/users/ITsvetkoFF/gists{/gist_id}","starred_url":"https://api.github.com/users/ITsvetkoFF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ITsvetkoFF/subscriptions","organizations_url":"https://api.github.com/users/ITsvetkoFF/orgs","repos_url":"https://api.github.com/users/ITsvetkoFF/repos","events_url":"https://api.github.com/users/ITsvetkoFF/events{/privacy}","received_events_url":"https://api.github.com/users/ITsvetkoFF/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ITsvetkoFF/Kv-014","description":"","fork":false,"url":"https://api.github.com/repos/ITsvetkoFF/Kv-014","forks_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/forks","keys_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/teams","hooks_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/hooks","issue_events_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/issues/events{/number}","events_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/events","assignees_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/assignees{/user}","branches_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/branches{/branch}","tags_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/tags","blobs_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/git/refs{/sha}","trees_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/statuses/{sha}","languages_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/languages","stargazers_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/stargazers","contributors_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/contributors","subscribers_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/subscribers","subscription_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/subscription","commits_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/commits{/sha}","git_commits_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/git/commits{/sha}","comments_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/comments{/number}","issue_comment_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/issues/comments{/number}","contents_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/contents/{+path}","compare_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/merges","archive_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/downloads","issues_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/issues{/number}","pulls_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls{/number}","milestones_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/milestones{/number}","notifications_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/labels{/name}","releases_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/releases{/id}","deployments_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/deployments","created_at":"2016-04-11T09:16:21Z","updated_at":"2016-05-24T11:13:40Z","pushed_at":"2016-05-31T12:58:26Z","git_url":"git://github.com/ITsvetkoFF/Kv-014.git","ssh_url":"git@github.com:ITsvetkoFF/Kv-014.git","clone_url":"https://github.com/ITsvetkoFF/Kv-014.git","svn_url":"https://github.com/ITsvetkoFF/Kv-014","homepage":null,"size":1439,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":1,"default_branch":"develop"}},"base":{"label":"ITsvetkoFF:develop","ref":"develop","sha":"6305b662b5517e03cd74d4f1084b7fde2199019d","user":{"login":"ITsvetkoFF","id":7273003,"avatar_url":"https://avatars.githubusercontent.com/u/7273003?v=3","gravatar_id":"","url":"https://api.github.com/users/ITsvetkoFF","html_url":"https://github.com/ITsvetkoFF","followers_url":"https://api.github.com/users/ITsvetkoFF/followers","following_url":"https://api.github.com/users/ITsvetkoFF/following{/other_user}","gists_url":"https://api.github.com/users/ITsvetkoFF/gists{/gist_id}","starred_url":"https://api.github.com/users/ITsvetkoFF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ITsvetkoFF/subscriptions","organizations_url":"https://api.github.com/users/ITsvetkoFF/orgs","repos_url":"https://api.github.com/users/ITsvetkoFF/repos","events_url":"https://api.github.com/users/ITsvetkoFF/events{/privacy}","received_events_url":"https://api.github.com/users/ITsvetkoFF/received_events","type":"User","site_admin":false},"repo":{"id":55958203,"name":"Kv-014","full_name":"ITsvetkoFF/Kv-014","owner":{"login":"ITsvetkoFF","id":7273003,"avatar_url":"https://avatars.githubusercontent.com/u/7273003?v=3","gravatar_id":"","url":"https://api.github.com/users/ITsvetkoFF","html_url":"https://github.com/ITsvetkoFF","followers_url":"https://api.github.com/users/ITsvetkoFF/followers","following_url":"https://api.github.com/users/ITsvetkoFF/following{/other_user}","gists_url":"https://api.github.com/users/ITsvetkoFF/gists{/gist_id}","starred_url":"https://api.github.com/users/ITsvetkoFF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ITsvetkoFF/subscriptions","organizations_url":"https://api.github.com/users/ITsvetkoFF/orgs","repos_url":"https://api.github.com/users/ITsvetkoFF/repos","events_url":"https://api.github.com/users/ITsvetkoFF/events{/privacy}","received_events_url":"https://api.github.com/users/ITsvetkoFF/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ITsvetkoFF/Kv-014","description":"","fork":false,"url":"https://api.github.com/repos/ITsvetkoFF/Kv-014","forks_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/forks","keys_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/teams","hooks_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/hooks","issue_events_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/issues/events{/number}","events_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/events","assignees_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/assignees{/user}","branches_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/branches{/branch}","tags_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/tags","blobs_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/git/refs{/sha}","trees_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/statuses/{sha}","languages_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/languages","stargazers_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/stargazers","contributors_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/contributors","subscribers_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/subscribers","subscription_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/subscription","commits_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/commits{/sha}","git_commits_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/git/commits{/sha}","comments_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/comments{/number}","issue_comment_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/issues/comments{/number}","contents_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/contents/{+path}","compare_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/merges","archive_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/downloads","issues_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/issues{/number}","pulls_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls{/number}","milestones_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/milestones{/number}","notifications_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/labels{/name}","releases_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/releases{/id}","deployments_url":"https://api.github.com/repos/ITsvetkoFF/Kv-014/deployments","created_at":"2016-04-11T09:16:21Z","updated_at":"2016-05-24T11:13:40Z","pushed_at":"2016-05-31T12:58:26Z","git_url":"git://github.com/ITsvetkoFF/Kv-014.git","ssh_url":"git@github.com:ITsvetkoFF/Kv-014.git","clone_url":"https://github.com/ITsvetkoFF/Kv-014.git","svn_url":"https://github.com/ITsvetkoFF/Kv-014","homepage":null,"size":1439,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls/131"},"html":{"href":"https://github.com/ITsvetkoFF/Kv-014/pull/131"},"issue":{"href":"https://api.github.com/repos/ITsvetkoFF/Kv-014/issues/131"},"comments":{"href":"https://api.github.com/repos/ITsvetkoFF/Kv-014/issues/131/comments"},"review_comments":{"href":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls/131/comments"},"review_comment":{"href":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ITsvetkoFF/Kv-014/pulls/131/commits"},"statuses":{"href":"https://api.github.com/repos/ITsvetkoFF/Kv-014/statuses/6a666dc98d63f02c0262b0729ffd66062f03c61a"}}}}
{"actor":{"display_login":"ITsvetkoFF"}}