{"action":"created","comment":{"url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/comments/26228622","id":26228622,"diff_hunk":"@@ -0,0 +1,48 @@\n+package com.aguirre.topic7.controllers;\r\n+\r\n+import java.util.List;\r\n+\r\n+import javax.persistence.Entity;\r\n+\r\n+import org.springframework.beans.factory.annotation.Autowired;\r\n+import org.springframework.web.bind.annotation.PathVariable;\r\n+import org.springframework.web.bind.annotation.RequestMapping;\r\n+import org.springframework.web.bind.annotation.RequestMethod;\r\n+\r\n+import com.aguirre.topic7.models.Course;\r\n+import com.aguirre.topic7.models.CourseDao;\r\n+import com.aguirre.topic7.models.Student;\r\n+import com.aguirre.topic7.models.StudentCourseDao;\r\n+import com.google.gson.Gson;\r\n+\r\n+@Entity\r\n+@RequestMapping(\"/courses\")\r\n+public class CourseController {\r\n+\r\n+\t@Autowired\r\n+\tprivate CourseDao courseDao;\r\n+\tprivate StudentCourseDao studentCourseDao;\r\n+\r\n+\t@RequestMapping(method = RequestMethod.POST)\r","path":"Topic7/src/main/java/com/aguirre/topic7/controllers/CourseController.java","position":26,"original_position":26,"commit_id":"bd929862a1d7ead3b6465600003e94940f08c200","original_commit_id":"bd929862a1d7ead3b6465600003e94940f08c200","user":{"login":"aguirre-luciano","id":10944841,"avatar_url":"https://avatars.githubusercontent.com/u/10944841?v=3","gravatar_id":"","url":"https://api.github.com/users/aguirre-luciano","html_url":"https://github.com/aguirre-luciano","followers_url":"https://api.github.com/users/aguirre-luciano/followers","following_url":"https://api.github.com/users/aguirre-luciano/following{/other_user}","gists_url":"https://api.github.com/users/aguirre-luciano/gists{/gist_id}","starred_url":"https://api.github.com/users/aguirre-luciano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguirre-luciano/subscriptions","organizations_url":"https://api.github.com/users/aguirre-luciano/orgs","repos_url":"https://api.github.com/users/aguirre-luciano/repos","events_url":"https://api.github.com/users/aguirre-luciano/events{/privacy}","received_events_url":"https://api.github.com/users/aguirre-luciano/received_events","type":"User","site_admin":false},"body":"Because the method inherits from the class the URI \"/courses\" , so this method processed the RequestMethod.POST for the URI \"/courses\" (I did this to avoid put \"/courses\" in all methods)","created_at":"2015-03-11T16:29:16Z","updated_at":"2015-03-11T16:29:16Z","html_url":"https://github.com/lucast-globant/java-bootcamp-bahia/pull/102#discussion_r26228622","pull_request_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/102","_links":{"self":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/comments/26228622"},"html":{"href":"https://github.com/lucast-globant/java-bootcamp-bahia/pull/102#discussion_r26228622"},"pull_request":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/102","id":30523006,"html_url":"https://github.com/lucast-globant/java-bootcamp-bahia/pull/102","diff_url":"https://github.com/lucast-globant/java-bootcamp-bahia/pull/102.diff","patch_url":"https://github.com/lucast-globant/java-bootcamp-bahia/pull/102.patch","issue_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues/102","number":102,"state":"open","locked":false,"title":"Topic 7!","user":{"login":"aguirre-luciano","id":10944841,"avatar_url":"https://avatars.githubusercontent.com/u/10944841?v=3","gravatar_id":"","url":"https://api.github.com/users/aguirre-luciano","html_url":"https://github.com/aguirre-luciano","followers_url":"https://api.github.com/users/aguirre-luciano/followers","following_url":"https://api.github.com/users/aguirre-luciano/following{/other_user}","gists_url":"https://api.github.com/users/aguirre-luciano/gists{/gist_id}","starred_url":"https://api.github.com/users/aguirre-luciano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguirre-luciano/subscriptions","organizations_url":"https://api.github.com/users/aguirre-luciano/orgs","repos_url":"https://api.github.com/users/aguirre-luciano/repos","events_url":"https://api.github.com/users/aguirre-luciano/events{/privacy}","received_events_url":"https://api.github.com/users/aguirre-luciano/received_events","type":"User","site_admin":false},"body":"Topic 7!","created_at":"2015-03-05T01:40:35Z","updated_at":"2015-03-11T16:29:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a168237ff550ac305e53afce5f4bfd6396264ff0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/102/commits","review_comments_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/102/comments","review_comment_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues/102/comments","statuses_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/statuses/bd929862a1d7ead3b6465600003e94940f08c200","head":{"label":"aguirre-luciano:topic7","ref":"topic7","sha":"bd929862a1d7ead3b6465600003e94940f08c200","user":{"login":"aguirre-luciano","id":10944841,"avatar_url":"https://avatars.githubusercontent.com/u/10944841?v=3","gravatar_id":"","url":"https://api.github.com/users/aguirre-luciano","html_url":"https://github.com/aguirre-luciano","followers_url":"https://api.github.com/users/aguirre-luciano/followers","following_url":"https://api.github.com/users/aguirre-luciano/following{/other_user}","gists_url":"https://api.github.com/users/aguirre-luciano/gists{/gist_id}","starred_url":"https://api.github.com/users/aguirre-luciano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguirre-luciano/subscriptions","organizations_url":"https://api.github.com/users/aguirre-luciano/orgs","repos_url":"https://api.github.com/users/aguirre-luciano/repos","events_url":"https://api.github.com/users/aguirre-luciano/events{/privacy}","received_events_url":"https://api.github.com/users/aguirre-luciano/received_events","type":"User","site_admin":false},"repo":{"id":30603293,"name":"java-bootcamp-bahia","full_name":"aguirre-luciano/java-bootcamp-bahia","owner":{"login":"aguirre-luciano","id":10944841,"avatar_url":"https://avatars.githubusercontent.com/u/10944841?v=3","gravatar_id":"","url":"https://api.github.com/users/aguirre-luciano","html_url":"https://github.com/aguirre-luciano","followers_url":"https://api.github.com/users/aguirre-luciano/followers","following_url":"https://api.github.com/users/aguirre-luciano/following{/other_user}","gists_url":"https://api.github.com/users/aguirre-luciano/gists{/gist_id}","starred_url":"https://api.github.com/users/aguirre-luciano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguirre-luciano/subscriptions","organizations_url":"https://api.github.com/users/aguirre-luciano/orgs","repos_url":"https://api.github.com/users/aguirre-luciano/repos","events_url":"https://api.github.com/users/aguirre-luciano/events{/privacy}","received_events_url":"https://api.github.com/users/aguirre-luciano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aguirre-luciano/java-bootcamp-bahia","description":"Java Bootcamp","fork":true,"url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia","forks_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/forks","keys_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/teams","hooks_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/hooks","issue_events_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/issues/events{/number}","events_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/events","assignees_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/assignees{/user}","branches_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/branches{/branch}","tags_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/tags","blobs_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/git/refs{/sha}","trees_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/statuses/{sha}","languages_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/languages","stargazers_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/stargazers","contributors_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/contributors","subscribers_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/subscribers","subscription_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/subscription","commits_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/commits{/sha}","git_commits_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/git/commits{/sha}","comments_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/comments{/number}","issue_comment_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/issues/comments{/number}","contents_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/contents/{+path}","compare_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/merges","archive_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/downloads","issues_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/issues{/number}","pulls_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/pulls{/number}","milestones_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/milestones{/number}","notifications_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/labels{/name}","releases_url":"https://api.github.com/repos/aguirre-luciano/java-bootcamp-bahia/releases{/id}","created_at":"2015-02-10T17:05:23Z","updated_at":"2015-02-09T20:25:56Z","pushed_at":"2015-03-07T01:11:04Z","git_url":"git://github.com/aguirre-luciano/java-bootcamp-bahia.git","ssh_url":"git@github.com:aguirre-luciano/java-bootcamp-bahia.git","clone_url":"https://github.com/aguirre-luciano/java-bootcamp-bahia.git","svn_url":"https://github.com/aguirre-luciano/java-bootcamp-bahia","homepage":null,"size":308,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lucast-globant:master","ref":"master","sha":"948b30a6e222dbba3e817efbcae98c4812a40b15","user":{"login":"lucast-globant","id":10869512,"avatar_url":"https://avatars.githubusercontent.com/u/10869512?v=3","gravatar_id":"","url":"https://api.github.com/users/lucast-globant","html_url":"https://github.com/lucast-globant","followers_url":"https://api.github.com/users/lucast-globant/followers","following_url":"https://api.github.com/users/lucast-globant/following{/other_user}","gists_url":"https://api.github.com/users/lucast-globant/gists{/gist_id}","starred_url":"https://api.github.com/users/lucast-globant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucast-globant/subscriptions","organizations_url":"https://api.github.com/users/lucast-globant/orgs","repos_url":"https://api.github.com/users/lucast-globant/repos","events_url":"https://api.github.com/users/lucast-globant/events{/privacy}","received_events_url":"https://api.github.com/users/lucast-globant/received_events","type":"User","site_admin":false},"repo":{"id":30368310,"name":"java-bootcamp-bahia","full_name":"lucast-globant/java-bootcamp-bahia","owner":{"login":"lucast-globant","id":10869512,"avatar_url":"https://avatars.githubusercontent.com/u/10869512?v=3","gravatar_id":"","url":"https://api.github.com/users/lucast-globant","html_url":"https://github.com/lucast-globant","followers_url":"https://api.github.com/users/lucast-globant/followers","following_url":"https://api.github.com/users/lucast-globant/following{/other_user}","gists_url":"https://api.github.com/users/lucast-globant/gists{/gist_id}","starred_url":"https://api.github.com/users/lucast-globant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucast-globant/subscriptions","organizations_url":"https://api.github.com/users/lucast-globant/orgs","repos_url":"https://api.github.com/users/lucast-globant/repos","events_url":"https://api.github.com/users/lucast-globant/events{/privacy}","received_events_url":"https://api.github.com/users/lucast-globant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lucast-globant/java-bootcamp-bahia","description":"Java Bootcamp","fork":true,"url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia","forks_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/forks","keys_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/teams","hooks_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/hooks","issue_events_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues/events{/number}","events_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/events","assignees_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/assignees{/user}","branches_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/branches{/branch}","tags_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/tags","blobs_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/git/refs{/sha}","trees_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/statuses/{sha}","languages_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/languages","stargazers_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/stargazers","contributors_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/contributors","subscribers_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/subscribers","subscription_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/subscription","commits_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/commits{/sha}","git_commits_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/git/commits{/sha}","comments_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/comments{/number}","issue_comment_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues/comments{/number}","contents_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/contents/{+path}","compare_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/merges","archive_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/downloads","issues_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues{/number}","pulls_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls{/number}","milestones_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/milestones{/number}","notifications_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/labels{/name}","releases_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/releases{/id}","created_at":"2015-02-05T17:27:42Z","updated_at":"2015-03-02T13:03:22Z","pushed_at":"2015-02-10T13:31:28Z","git_url":"git://github.com/lucast-globant/java-bootcamp-bahia.git","ssh_url":"git@github.com:lucast-globant/java-bootcamp-bahia.git","clone_url":"https://github.com/lucast-globant/java-bootcamp-bahia.git","svn_url":"https://github.com/lucast-globant/java-bootcamp-bahia","homepage":null,"size":278,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":36,"forks":15,"open_issues":36,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/102"},"html":{"href":"https://github.com/lucast-globant/java-bootcamp-bahia/pull/102"},"issue":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues/102"},"comments":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/statuses/bd929862a1d7ead3b6465600003e94940f08c200"}}}}