{"action":"created","comment":{"url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/pulls/comments/35760086","id":35760086,"diff_hunk":"@@ -0,0 +1,38 @@\n+package org.gradle.controller;\n+\n+import java.util.List;\n+\n+import org.gradle.entity.User;\n+import org.gradle.service.UserService;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.web.bind.annotation.RequestMapping;\n+import org.springframework.web.bind.annotation.RequestParam;\n+import org.springframework.web.bind.annotation.RestController; \n+\n+\n+@RestController\n+public class UserController {\n+\t\n+\t@Autowired\n+\tprivate UserService userService; \n+\t\n+    @RequestMapping(\"/list\")\n+    public List<User> greeting() {\n+        return userService.getUser();\n+    }\n+    \n+    @RequestMapping(value = \"/add\")\n+    public User addUser(@RequestParam(value = \"firstName\")String firstName,\n+    \t\t@RequestParam(value = \"lastName\")String lastName,\n+    \t\t@RequestParam(value = \"email\")String email,\n+    \t\t@RequestParam(value = \"password\")String password){\n+    \tUser user = new User(firstName, lastName, email, password);\n+    \treturn userService.insertUser(user);\n+    }\n+    \n+    ","path":"SpringBootGradle2/src/main/java/org/gradle/controller/UserController.java","position":33,"original_position":33,"commit_id":"6392cf254d1a8deea0306f6e55c66f6809d0818f","original_commit_id":"6392cf254d1a8deea0306f6e55c66f6809d0818f","user":{"login":"luongbangnguyen","id":10724386,"avatar_url":"https://avatars.githubusercontent.com/u/10724386?v=3","gravatar_id":"","url":"https://api.github.com/users/luongbangnguyen","html_url":"https://github.com/luongbangnguyen","followers_url":"https://api.github.com/users/luongbangnguyen/followers","following_url":"https://api.github.com/users/luongbangnguyen/following{/other_user}","gists_url":"https://api.github.com/users/luongbangnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/luongbangnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luongbangnguyen/subscriptions","organizations_url":"https://api.github.com/users/luongbangnguyen/orgs","repos_url":"https://api.github.com/users/luongbangnguyen/repos","events_url":"https://api.github.com/users/luongbangnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/luongbangnguyen/received_events","type":"User","site_admin":false},"body":"sử dụng phương thức post","created_at":"2015-07-29T13:49:20Z","updated_at":"2015-07-29T13:49:20Z","html_url":"https://github.com/dinhhoa214/SpringBootWithGradle/pull/1#discussion_r35760086","pull_request_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/pulls/comments/35760086"},"html":{"href":"https://github.com/dinhhoa214/SpringBootWithGradle/pull/1#discussion_r35760086"},"pull_request":{"href":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/pulls/1","id":41108697,"html_url":"https://github.com/dinhhoa214/SpringBootWithGradle/pull/1","diff_url":"https://github.com/dinhhoa214/SpringBootWithGradle/pull/1.diff","patch_url":"https://github.com/dinhhoa214/SpringBootWithGradle/pull/1.patch","issue_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/issues/1","number":1,"state":"open","locked":false,"title":"dev_dinhhoa","user":{"login":"dinhhoa214","id":11954164,"avatar_url":"https://avatars.githubusercontent.com/u/11954164?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhhoa214","html_url":"https://github.com/dinhhoa214","followers_url":"https://api.github.com/users/dinhhoa214/followers","following_url":"https://api.github.com/users/dinhhoa214/following{/other_user}","gists_url":"https://api.github.com/users/dinhhoa214/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhhoa214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhhoa214/subscriptions","organizations_url":"https://api.github.com/users/dinhhoa214/orgs","repos_url":"https://api.github.com/users/dinhhoa214/repos","events_url":"https://api.github.com/users/dinhhoa214/events{/privacy}","received_events_url":"https://api.github.com/users/dinhhoa214/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-29T10:35:08Z","updated_at":"2015-07-29T13:49:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"69339bff6178a1e509241f446fa099258e177b6c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/pulls/1/commits","review_comments_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/pulls/1/comments","review_comment_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/issues/1/comments","statuses_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/statuses/6392cf254d1a8deea0306f6e55c66f6809d0818f","head":{"label":"dinhhoa214:dev_dinhhoa_codeProject","ref":"dev_dinhhoa_codeProject","sha":"6392cf254d1a8deea0306f6e55c66f6809d0818f","user":{"login":"dinhhoa214","id":11954164,"avatar_url":"https://avatars.githubusercontent.com/u/11954164?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhhoa214","html_url":"https://github.com/dinhhoa214","followers_url":"https://api.github.com/users/dinhhoa214/followers","following_url":"https://api.github.com/users/dinhhoa214/following{/other_user}","gists_url":"https://api.github.com/users/dinhhoa214/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhhoa214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhhoa214/subscriptions","organizations_url":"https://api.github.com/users/dinhhoa214/orgs","repos_url":"https://api.github.com/users/dinhhoa214/repos","events_url":"https://api.github.com/users/dinhhoa214/events{/privacy}","received_events_url":"https://api.github.com/users/dinhhoa214/received_events","type":"User","site_admin":false},"repo":{"id":39887202,"name":"SpringBootWithGradle","full_name":"dinhhoa214/SpringBootWithGradle","owner":{"login":"dinhhoa214","id":11954164,"avatar_url":"https://avatars.githubusercontent.com/u/11954164?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhhoa214","html_url":"https://github.com/dinhhoa214","followers_url":"https://api.github.com/users/dinhhoa214/followers","following_url":"https://api.github.com/users/dinhhoa214/following{/other_user}","gists_url":"https://api.github.com/users/dinhhoa214/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhhoa214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhhoa214/subscriptions","organizations_url":"https://api.github.com/users/dinhhoa214/orgs","repos_url":"https://api.github.com/users/dinhhoa214/repos","events_url":"https://api.github.com/users/dinhhoa214/events{/privacy}","received_events_url":"https://api.github.com/users/dinhhoa214/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dinhhoa214/SpringBootWithGradle","description":"","fork":false,"url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle","forks_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/forks","keys_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/teams","hooks_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/hooks","issue_events_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/issues/events{/number}","events_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/events","assignees_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/assignees{/user}","branches_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/branches{/branch}","tags_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/tags","blobs_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/statuses/{sha}","languages_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/languages","stargazers_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/stargazers","contributors_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/contributors","subscribers_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/subscribers","subscription_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/subscription","commits_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/contents/{+path}","compare_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/merges","archive_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/downloads","issues_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/issues{/number}","pulls_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/pulls{/number}","milestones_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/milestones{/number}","notifications_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/labels{/name}","releases_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/releases{/id}","created_at":"2015-07-29T10:15:45Z","updated_at":"2015-07-29T10:25:15Z","pushed_at":"2015-07-29T10:35:09Z","git_url":"git://github.com/dinhhoa214/SpringBootWithGradle.git","ssh_url":"git@github.com:dinhhoa214/SpringBootWithGradle.git","clone_url":"https://github.com/dinhhoa214/SpringBootWithGradle.git","svn_url":"https://github.com/dinhhoa214/SpringBootWithGradle","homepage":null,"size":0,"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":"dinhhoa214:master","ref":"master","sha":"2e72a97dfc5f4c65875101ae0ee1f9a8ca6de957","user":{"login":"dinhhoa214","id":11954164,"avatar_url":"https://avatars.githubusercontent.com/u/11954164?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhhoa214","html_url":"https://github.com/dinhhoa214","followers_url":"https://api.github.com/users/dinhhoa214/followers","following_url":"https://api.github.com/users/dinhhoa214/following{/other_user}","gists_url":"https://api.github.com/users/dinhhoa214/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhhoa214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhhoa214/subscriptions","organizations_url":"https://api.github.com/users/dinhhoa214/orgs","repos_url":"https://api.github.com/users/dinhhoa214/repos","events_url":"https://api.github.com/users/dinhhoa214/events{/privacy}","received_events_url":"https://api.github.com/users/dinhhoa214/received_events","type":"User","site_admin":false},"repo":{"id":39887202,"name":"SpringBootWithGradle","full_name":"dinhhoa214/SpringBootWithGradle","owner":{"login":"dinhhoa214","id":11954164,"avatar_url":"https://avatars.githubusercontent.com/u/11954164?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhhoa214","html_url":"https://github.com/dinhhoa214","followers_url":"https://api.github.com/users/dinhhoa214/followers","following_url":"https://api.github.com/users/dinhhoa214/following{/other_user}","gists_url":"https://api.github.com/users/dinhhoa214/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhhoa214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhhoa214/subscriptions","organizations_url":"https://api.github.com/users/dinhhoa214/orgs","repos_url":"https://api.github.com/users/dinhhoa214/repos","events_url":"https://api.github.com/users/dinhhoa214/events{/privacy}","received_events_url":"https://api.github.com/users/dinhhoa214/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dinhhoa214/SpringBootWithGradle","description":"","fork":false,"url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle","forks_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/forks","keys_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/teams","hooks_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/hooks","issue_events_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/issues/events{/number}","events_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/events","assignees_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/assignees{/user}","branches_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/branches{/branch}","tags_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/tags","blobs_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/statuses/{sha}","languages_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/languages","stargazers_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/stargazers","contributors_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/contributors","subscribers_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/subscribers","subscription_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/subscription","commits_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/contents/{+path}","compare_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/merges","archive_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/downloads","issues_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/issues{/number}","pulls_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/pulls{/number}","milestones_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/milestones{/number}","notifications_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/labels{/name}","releases_url":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/releases{/id}","created_at":"2015-07-29T10:15:45Z","updated_at":"2015-07-29T10:25:15Z","pushed_at":"2015-07-29T10:35:09Z","git_url":"git://github.com/dinhhoa214/SpringBootWithGradle.git","ssh_url":"git@github.com:dinhhoa214/SpringBootWithGradle.git","clone_url":"https://github.com/dinhhoa214/SpringBootWithGradle.git","svn_url":"https://github.com/dinhhoa214/SpringBootWithGradle","homepage":null,"size":0,"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/dinhhoa214/SpringBootWithGradle/pulls/1"},"html":{"href":"https://github.com/dinhhoa214/SpringBootWithGradle/pull/1"},"issue":{"href":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/issues/1"},"comments":{"href":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/dinhhoa214/SpringBootWithGradle/statuses/6392cf254d1a8deea0306f6e55c66f6809d0818f"}}}}