{"action":"created","comment":{"url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls/comments/124971313","pull_request_review_id":47314283,"id":124971313,"diff_hunk":"@@ -17,40 +18,40 @@ public ClientController(ClientService clientService) {\n         this.clientService = clientService;\n     }\n \n-    @GetMapping(\"clients\")\n+    @GetMapping(\"/clients\")\n     public List<ClientDTO> clients() {\n \n         return clientService.findAllClients();\n     }\n \n-    @GetMapping(\"{id}\")\n+    @GetMapping(\"/clients/{id}\")\n     @ResponseBody\n-    public List<ClientDTO> getId(@PathVariable(\"id\") int id) {\n+    public List<ClientDTO> getById(@PathVariable(\"id\") int id) {\n \n-        return this.clientService.findById(id);\n+        return clientService.findById(id);\n     }\n \n-    @GetMapping(\"/client/{name}\")\n+    @GetMapping(\"/clients/{name}\")\n     @ResponseBody\n-    public List<ClientDTO> getName(@PathVariable(\"name\") String name) {\n+    public List<ClientDTO> getByName(@PathVariable(\"name\") String name) {\n         return clientService.findByName(name);\n     }\n \n-    @PostMapping(\"newClient\")\n-    public ClientEntity newClients(@RequestBody ClientEntity clientEntity) {\n+    @PostMapping(\"/client\")\n+    public List<ClientDTO> saveClient (@RequestBody ClientEntity clientEntity) {\n \n         return clientService.save(clientEntity);\n     }\n \n \n-    @DeleteMapping(\"/deleteClient/{id}\")\n+    @DeleteMapping(\"/clients/{id}\")\n     public void deleteClient(@PathVariable(\"id\") int id) {\n         clientService.deleteClient(id);\n \n     }\n \n-    @PutMapping(\"update\")\n-    public ClientEntity update(@RequestBody ClientDTO clientDTO) {\n+    @PutMapping(\"/client\")\n+    public List<ClientDTO> updateClientById(@RequestBody ClientDTO clientDTO) throws NotFoundException {","path":"src/main/java/com/ipcount/core/controller/ClientController.java","position":null,"original_position":56,"commit_id":"3c2ad4bae8bd8a03590590cb6477486f6faca1fc","original_commit_id":"1499edab02ee90f2c4c6d5557d7bdc87e0e16d78","user":{"login":"Oksana1788","id":15238742,"avatar_url":"https://avatars3.githubusercontent.com/u/15238742?v=3","gravatar_id":"","url":"https://api.github.com/users/Oksana1788","html_url":"https://github.com/Oksana1788","followers_url":"https://api.github.com/users/Oksana1788/followers","following_url":"https://api.github.com/users/Oksana1788/following{/other_user}","gists_url":"https://api.github.com/users/Oksana1788/gists{/gist_id}","starred_url":"https://api.github.com/users/Oksana1788/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oksana1788/subscriptions","organizations_url":"https://api.github.com/users/Oksana1788/orgs","repos_url":"https://api.github.com/users/Oksana1788/repos","events_url":"https://api.github.com/users/Oksana1788/events{/privacy}","received_events_url":"https://api.github.com/users/Oksana1788/received_events","type":"User","site_admin":false},"body":"no a have not any updates now.","created_at":"2017-06-30T06:22:31Z","updated_at":"2017-06-30T06:22:31Z","html_url":"https://github.com/yurii-polishchuk/ipcount-core/pull/58#discussion_r124971313","pull_request_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls/comments/124971313"},"html":{"href":"https://github.com/yurii-polishchuk/ipcount-core/pull/58#discussion_r124971313"},"pull_request":{"href":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls/58","id":124876223,"html_url":"https://github.com/yurii-polishchuk/ipcount-core/pull/58","diff_url":"https://github.com/yurii-polishchuk/ipcount-core/pull/58.diff","patch_url":"https://github.com/yurii-polishchuk/ipcount-core/pull/58.patch","issue_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/issues/58","number":58,"state":"open","locked":false,"title":"add Rest Controller for Cleints CRUD #24","user":{"login":"Oksana1788","id":15238742,"avatar_url":"https://avatars3.githubusercontent.com/u/15238742?v=3","gravatar_id":"","url":"https://api.github.com/users/Oksana1788","html_url":"https://github.com/Oksana1788","followers_url":"https://api.github.com/users/Oksana1788/followers","following_url":"https://api.github.com/users/Oksana1788/following{/other_user}","gists_url":"https://api.github.com/users/Oksana1788/gists{/gist_id}","starred_url":"https://api.github.com/users/Oksana1788/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oksana1788/subscriptions","organizations_url":"https://api.github.com/users/Oksana1788/orgs","repos_url":"https://api.github.com/users/Oksana1788/repos","events_url":"https://api.github.com/users/Oksana1788/events{/privacy}","received_events_url":"https://api.github.com/users/Oksana1788/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-09T14:12:13Z","updated_at":"2017-06-30T06:22:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aecf080f84dfe9cd34885aff0318c227b8a782c6","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls/58/commits","review_comments_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls/58/comments","review_comment_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/issues/58/comments","statuses_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/statuses/3c2ad4bae8bd8a03590590cb6477486f6faca1fc","head":{"label":"yurii-polishchuk:add-Rest-Controller-for-Cleints-CRUD-#24","ref":"add-Rest-Controller-for-Cleints-CRUD-#24","sha":"3c2ad4bae8bd8a03590590cb6477486f6faca1fc","user":{"login":"yurii-polishchuk","id":3194626,"avatar_url":"https://avatars3.githubusercontent.com/u/3194626?v=3","gravatar_id":"","url":"https://api.github.com/users/yurii-polishchuk","html_url":"https://github.com/yurii-polishchuk","followers_url":"https://api.github.com/users/yurii-polishchuk/followers","following_url":"https://api.github.com/users/yurii-polishchuk/following{/other_user}","gists_url":"https://api.github.com/users/yurii-polishchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-polishchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-polishchuk/subscriptions","organizations_url":"https://api.github.com/users/yurii-polishchuk/orgs","repos_url":"https://api.github.com/users/yurii-polishchuk/repos","events_url":"https://api.github.com/users/yurii-polishchuk/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-polishchuk/received_events","type":"User","site_admin":false},"repo":{"id":85626280,"name":"ipcount-core","full_name":"yurii-polishchuk/ipcount-core","owner":{"login":"yurii-polishchuk","id":3194626,"avatar_url":"https://avatars3.githubusercontent.com/u/3194626?v=3","gravatar_id":"","url":"https://api.github.com/users/yurii-polishchuk","html_url":"https://github.com/yurii-polishchuk","followers_url":"https://api.github.com/users/yurii-polishchuk/followers","following_url":"https://api.github.com/users/yurii-polishchuk/following{/other_user}","gists_url":"https://api.github.com/users/yurii-polishchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-polishchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-polishchuk/subscriptions","organizations_url":"https://api.github.com/users/yurii-polishchuk/orgs","repos_url":"https://api.github.com/users/yurii-polishchuk/repos","events_url":"https://api.github.com/users/yurii-polishchuk/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-polishchuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yurii-polishchuk/ipcount-core","description":"Internet Protocol Count Training Project","fork":false,"url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core","forks_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/forks","keys_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/teams","hooks_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/hooks","issue_events_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/issues/events{/number}","events_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/events","assignees_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/assignees{/user}","branches_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/branches{/branch}","tags_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/tags","blobs_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/statuses/{sha}","languages_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/languages","stargazers_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/stargazers","contributors_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/contributors","subscribers_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/subscribers","subscription_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/subscription","commits_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/contents/{+path}","compare_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/merges","archive_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/downloads","issues_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/issues{/number}","pulls_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls{/number}","milestones_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/milestones{/number}","notifications_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/labels{/name}","releases_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/releases{/id}","deployments_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/deployments","created_at":"2017-03-20T20:55:32Z","updated_at":"2017-04-05T20:25:47Z","pushed_at":"2017-06-20T21:01:45Z","git_url":"git://github.com/yurii-polishchuk/ipcount-core.git","ssh_url":"git@github.com:yurii-polishchuk/ipcount-core.git","clone_url":"https://github.com/yurii-polishchuk/ipcount-core.git","svn_url":"https://github.com/yurii-polishchuk/ipcount-core","homepage":null,"size":120,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":26,"forks":0,"open_issues":26,"watchers":4,"default_branch":"develop"}},"base":{"label":"yurii-polishchuk:develop","ref":"develop","sha":"d3c081c4a56ef006be32424cfe90b92741b93504","user":{"login":"yurii-polishchuk","id":3194626,"avatar_url":"https://avatars3.githubusercontent.com/u/3194626?v=3","gravatar_id":"","url":"https://api.github.com/users/yurii-polishchuk","html_url":"https://github.com/yurii-polishchuk","followers_url":"https://api.github.com/users/yurii-polishchuk/followers","following_url":"https://api.github.com/users/yurii-polishchuk/following{/other_user}","gists_url":"https://api.github.com/users/yurii-polishchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-polishchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-polishchuk/subscriptions","organizations_url":"https://api.github.com/users/yurii-polishchuk/orgs","repos_url":"https://api.github.com/users/yurii-polishchuk/repos","events_url":"https://api.github.com/users/yurii-polishchuk/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-polishchuk/received_events","type":"User","site_admin":false},"repo":{"id":85626280,"name":"ipcount-core","full_name":"yurii-polishchuk/ipcount-core","owner":{"login":"yurii-polishchuk","id":3194626,"avatar_url":"https://avatars3.githubusercontent.com/u/3194626?v=3","gravatar_id":"","url":"https://api.github.com/users/yurii-polishchuk","html_url":"https://github.com/yurii-polishchuk","followers_url":"https://api.github.com/users/yurii-polishchuk/followers","following_url":"https://api.github.com/users/yurii-polishchuk/following{/other_user}","gists_url":"https://api.github.com/users/yurii-polishchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-polishchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-polishchuk/subscriptions","organizations_url":"https://api.github.com/users/yurii-polishchuk/orgs","repos_url":"https://api.github.com/users/yurii-polishchuk/repos","events_url":"https://api.github.com/users/yurii-polishchuk/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-polishchuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yurii-polishchuk/ipcount-core","description":"Internet Protocol Count Training Project","fork":false,"url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core","forks_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/forks","keys_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/teams","hooks_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/hooks","issue_events_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/issues/events{/number}","events_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/events","assignees_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/assignees{/user}","branches_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/branches{/branch}","tags_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/tags","blobs_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/statuses/{sha}","languages_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/languages","stargazers_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/stargazers","contributors_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/contributors","subscribers_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/subscribers","subscription_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/subscription","commits_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/contents/{+path}","compare_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/merges","archive_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/downloads","issues_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/issues{/number}","pulls_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls{/number}","milestones_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/milestones{/number}","notifications_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/labels{/name}","releases_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/releases{/id}","deployments_url":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/deployments","created_at":"2017-03-20T20:55:32Z","updated_at":"2017-04-05T20:25:47Z","pushed_at":"2017-06-20T21:01:45Z","git_url":"git://github.com/yurii-polishchuk/ipcount-core.git","ssh_url":"git@github.com:yurii-polishchuk/ipcount-core.git","clone_url":"https://github.com/yurii-polishchuk/ipcount-core.git","svn_url":"https://github.com/yurii-polishchuk/ipcount-core","homepage":null,"size":120,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":26,"forks":0,"open_issues":26,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls/58"},"html":{"href":"https://github.com/yurii-polishchuk/ipcount-core/pull/58"},"issue":{"href":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/issues/58"},"comments":{"href":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/yurii-polishchuk/ipcount-core/statuses/3c2ad4bae8bd8a03590590cb6477486f6faca1fc"}}}}
{"actor":{"display_login":"Oksana1788"}}