{"action":"created","comment":{"url":"https://api.github.com/repos/testmycode/tmc-server/pulls/comments/85922188","pull_request_review_id":6607095,"id":85922188,"diff_hunk":"@@ -5,6 +5,53 @@\n \n class Course < ActiveRecord::Base\n   include SystemCommands\n+  include Swagger::Blocks\n+\n+  swagger_schema :Course do","path":"app/models/course.rb","position":6,"original_position":6,"commit_id":"568858b1ecc6484ed26e5b22cc1a58079dc2b30c","original_commit_id":"568858b1ecc6484ed26e5b22cc1a58079dc2b30c","user":{"login":"nygrenh","id":1922896,"avatar_url":"https://avatars.githubusercontent.com/u/1922896?v=3","gravatar_id":"","url":"https://api.github.com/users/nygrenh","html_url":"https://github.com/nygrenh","followers_url":"https://api.github.com/users/nygrenh/followers","following_url":"https://api.github.com/users/nygrenh/following{/other_user}","gists_url":"https://api.github.com/users/nygrenh/gists{/gist_id}","starred_url":"https://api.github.com/users/nygrenh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nygrenh/subscriptions","organizations_url":"https://api.github.com/users/nygrenh/orgs","repos_url":"https://api.github.com/users/nygrenh/repos","events_url":"https://api.github.com/users/nygrenh/events{/privacy}","received_events_url":"https://api.github.com/users/nygrenh/received_events","type":"User","site_admin":false},"body":"It's gonna get really ugly if we're going to include all this swagger logic on most of the models. Should we isolate this into its own file?","created_at":"2016-11-01T12:53:30Z","updated_at":"2016-11-01T12:54:21Z","html_url":"https://github.com/testmycode/tmc-server/pull/449#discussion_r85922188","pull_request_url":"https://api.github.com/repos/testmycode/tmc-server/pulls/449","_links":{"self":{"href":"https://api.github.com/repos/testmycode/tmc-server/pulls/comments/85922188"},"html":{"href":"https://github.com/testmycode/tmc-server/pull/449#discussion_r85922188"},"pull_request":{"href":"https://api.github.com/repos/testmycode/tmc-server/pulls/449"}}},"pull_request":{"url":"https://api.github.com/repos/testmycode/tmc-server/pulls/449","id":91747412,"html_url":"https://github.com/testmycode/tmc-server/pull/449","diff_url":"https://github.com/testmycode/tmc-server/pull/449.diff","patch_url":"https://github.com/testmycode/tmc-server/pull/449.patch","issue_url":"https://api.github.com/repos/testmycode/tmc-server/issues/449","number":449,"state":"open","locked":false,"title":"Api find course by name or id","user":{"login":"teksii","id":12049286,"avatar_url":"https://avatars.githubusercontent.com/u/12049286?v=3","gravatar_id":"","url":"https://api.github.com/users/teksii","html_url":"https://github.com/teksii","followers_url":"https://api.github.com/users/teksii/followers","following_url":"https://api.github.com/users/teksii/following{/other_user}","gists_url":"https://api.github.com/users/teksii/gists{/gist_id}","starred_url":"https://api.github.com/users/teksii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teksii/subscriptions","organizations_url":"https://api.github.com/users/teksii/orgs","repos_url":"https://api.github.com/users/teksii/repos","events_url":"https://api.github.com/users/teksii/events{/privacy}","received_events_url":"https://api.github.com/users/teksii/received_events","type":"User","site_admin":false},"body":"Kurssin haku \r\n- /api/v8/organizations/:org_slug/courses/:course_name \r\n- /api/v8/courses/:course_id\r\n- tests\r\n- documentation\r\n\r\nThis closes #429 and closes #430 \r\n@testmycode/api-team \r\n\r\nJenkins build: http://ohtu-jenkins.testmycode.io/job/tmc-server-api-course-search/5/","created_at":"2016-11-01T08:29:55Z","updated_at":"2016-11-01T12:54:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11bf536c4811ed03ef38802a58b7cfe67afe6b82","assignee":{"login":"jamo","id":1354151,"avatar_url":"https://avatars.githubusercontent.com/u/1354151?v=3","gravatar_id":"","url":"https://api.github.com/users/jamo","html_url":"https://github.com/jamo","followers_url":"https://api.github.com/users/jamo/followers","following_url":"https://api.github.com/users/jamo/following{/other_user}","gists_url":"https://api.github.com/users/jamo/gists{/gist_id}","starred_url":"https://api.github.com/users/jamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamo/subscriptions","organizations_url":"https://api.github.com/users/jamo/orgs","repos_url":"https://api.github.com/users/jamo/repos","events_url":"https://api.github.com/users/jamo/events{/privacy}","received_events_url":"https://api.github.com/users/jamo/received_events","type":"User","site_admin":false},"assignees":[{"login":"jamo","id":1354151,"avatar_url":"https://avatars.githubusercontent.com/u/1354151?v=3","gravatar_id":"","url":"https://api.github.com/users/jamo","html_url":"https://github.com/jamo","followers_url":"https://api.github.com/users/jamo/followers","following_url":"https://api.github.com/users/jamo/following{/other_user}","gists_url":"https://api.github.com/users/jamo/gists{/gist_id}","starred_url":"https://api.github.com/users/jamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamo/subscriptions","organizations_url":"https://api.github.com/users/jamo/orgs","repos_url":"https://api.github.com/users/jamo/repos","events_url":"https://api.github.com/users/jamo/events{/privacy}","received_events_url":"https://api.github.com/users/jamo/received_events","type":"User","site_admin":false},{"login":"nygrenh","id":1922896,"avatar_url":"https://avatars.githubusercontent.com/u/1922896?v=3","gravatar_id":"","url":"https://api.github.com/users/nygrenh","html_url":"https://github.com/nygrenh","followers_url":"https://api.github.com/users/nygrenh/followers","following_url":"https://api.github.com/users/nygrenh/following{/other_user}","gists_url":"https://api.github.com/users/nygrenh/gists{/gist_id}","starred_url":"https://api.github.com/users/nygrenh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nygrenh/subscriptions","organizations_url":"https://api.github.com/users/nygrenh/orgs","repos_url":"https://api.github.com/users/nygrenh/repos","events_url":"https://api.github.com/users/nygrenh/events{/privacy}","received_events_url":"https://api.github.com/users/nygrenh/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/testmycode/tmc-server/milestones/4","html_url":"https://github.com/testmycode/tmc-server/milestones/API%20MVP","labels_url":"https://api.github.com/repos/testmycode/tmc-server/milestones/4/labels","id":1983879,"number":4,"title":"API MVP","description":"Stuff for the new api","creator":{"login":"jamo","id":1354151,"avatar_url":"https://avatars.githubusercontent.com/u/1354151?v=3","gravatar_id":"","url":"https://api.github.com/users/jamo","html_url":"https://github.com/jamo","followers_url":"https://api.github.com/users/jamo/followers","following_url":"https://api.github.com/users/jamo/following{/other_user}","gists_url":"https://api.github.com/users/jamo/gists{/gist_id}","starred_url":"https://api.github.com/users/jamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamo/subscriptions","organizations_url":"https://api.github.com/users/jamo/orgs","repos_url":"https://api.github.com/users/jamo/repos","events_url":"https://api.github.com/users/jamo/events{/privacy}","received_events_url":"https://api.github.com/users/jamo/received_events","type":"User","site_admin":false},"open_issues":36,"closed_issues":1,"state":"open","created_at":"2016-09-05T10:17:36Z","updated_at":"2016-11-01T12:29:08Z","due_on":"2016-09-30T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/testmycode/tmc-server/pulls/449/commits","review_comments_url":"https://api.github.com/repos/testmycode/tmc-server/pulls/449/comments","review_comment_url":"https://api.github.com/repos/testmycode/tmc-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/testmycode/tmc-server/issues/449/comments","statuses_url":"https://api.github.com/repos/testmycode/tmc-server/statuses/568858b1ecc6484ed26e5b22cc1a58079dc2b30c","head":{"label":"testmycode:api-course-by-name","ref":"api-course-by-name","sha":"568858b1ecc6484ed26e5b22cc1a58079dc2b30c","user":{"login":"testmycode","id":893468,"avatar_url":"https://avatars.githubusercontent.com/u/893468?v=3","gravatar_id":"","url":"https://api.github.com/users/testmycode","html_url":"https://github.com/testmycode","followers_url":"https://api.github.com/users/testmycode/followers","following_url":"https://api.github.com/users/testmycode/following{/other_user}","gists_url":"https://api.github.com/users/testmycode/gists{/gist_id}","starred_url":"https://api.github.com/users/testmycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testmycode/subscriptions","organizations_url":"https://api.github.com/users/testmycode/orgs","repos_url":"https://api.github.com/users/testmycode/repos","events_url":"https://api.github.com/users/testmycode/events{/privacy}","received_events_url":"https://api.github.com/users/testmycode/received_events","type":"Organization","site_admin":false},"repo":{"id":1995270,"name":"tmc-server","full_name":"testmycode/tmc-server","owner":{"login":"testmycode","id":893468,"avatar_url":"https://avatars.githubusercontent.com/u/893468?v=3","gravatar_id":"","url":"https://api.github.com/users/testmycode","html_url":"https://github.com/testmycode","followers_url":"https://api.github.com/users/testmycode/followers","following_url":"https://api.github.com/users/testmycode/following{/other_user}","gists_url":"https://api.github.com/users/testmycode/gists{/gist_id}","starred_url":"https://api.github.com/users/testmycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testmycode/subscriptions","organizations_url":"https://api.github.com/users/testmycode/orgs","repos_url":"https://api.github.com/users/testmycode/repos","events_url":"https://api.github.com/users/testmycode/events{/privacy}","received_events_url":"https://api.github.com/users/testmycode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/testmycode/tmc-server","description":"Test My Code exercise server used by e.g. http://mooc.fi/","fork":false,"url":"https://api.github.com/repos/testmycode/tmc-server","forks_url":"https://api.github.com/repos/testmycode/tmc-server/forks","keys_url":"https://api.github.com/repos/testmycode/tmc-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/testmycode/tmc-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/testmycode/tmc-server/teams","hooks_url":"https://api.github.com/repos/testmycode/tmc-server/hooks","issue_events_url":"https://api.github.com/repos/testmycode/tmc-server/issues/events{/number}","events_url":"https://api.github.com/repos/testmycode/tmc-server/events","assignees_url":"https://api.github.com/repos/testmycode/tmc-server/assignees{/user}","branches_url":"https://api.github.com/repos/testmycode/tmc-server/branches{/branch}","tags_url":"https://api.github.com/repos/testmycode/tmc-server/tags","blobs_url":"https://api.github.com/repos/testmycode/tmc-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/testmycode/tmc-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/testmycode/tmc-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/testmycode/tmc-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/testmycode/tmc-server/statuses/{sha}","languages_url":"https://api.github.com/repos/testmycode/tmc-server/languages","stargazers_url":"https://api.github.com/repos/testmycode/tmc-server/stargazers","contributors_url":"https://api.github.com/repos/testmycode/tmc-server/contributors","subscribers_url":"https://api.github.com/repos/testmycode/tmc-server/subscribers","subscription_url":"https://api.github.com/repos/testmycode/tmc-server/subscription","commits_url":"https://api.github.com/repos/testmycode/tmc-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/testmycode/tmc-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/testmycode/tmc-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/testmycode/tmc-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/testmycode/tmc-server/contents/{+path}","compare_url":"https://api.github.com/repos/testmycode/tmc-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/testmycode/tmc-server/merges","archive_url":"https://api.github.com/repos/testmycode/tmc-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/testmycode/tmc-server/downloads","issues_url":"https://api.github.com/repos/testmycode/tmc-server/issues{/number}","pulls_url":"https://api.github.com/repos/testmycode/tmc-server/pulls{/number}","milestones_url":"https://api.github.com/repos/testmycode/tmc-server/milestones{/number}","notifications_url":"https://api.github.com/repos/testmycode/tmc-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/testmycode/tmc-server/labels{/name}","releases_url":"https://api.github.com/repos/testmycode/tmc-server/releases{/id}","deployments_url":"https://api.github.com/repos/testmycode/tmc-server/deployments","created_at":"2011-07-04T12:29:36Z","updated_at":"2016-10-26T09:09:35Z","pushed_at":"2016-11-01T12:37:40Z","git_url":"git://github.com/testmycode/tmc-server.git","ssh_url":"git@github.com:testmycode/tmc-server.git","clone_url":"https://github.com/testmycode/tmc-server.git","svn_url":"https://github.com/testmycode/tmc-server","homepage":"","size":8837,"stargazers_count":17,"watchers_count":17,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":150,"forks":21,"open_issues":150,"watchers":17,"default_branch":"master"}},"base":{"label":"testmycode:master","ref":"master","sha":"65e758640cbeb0b00a4edf5bcae36bd94fe28220","user":{"login":"testmycode","id":893468,"avatar_url":"https://avatars.githubusercontent.com/u/893468?v=3","gravatar_id":"","url":"https://api.github.com/users/testmycode","html_url":"https://github.com/testmycode","followers_url":"https://api.github.com/users/testmycode/followers","following_url":"https://api.github.com/users/testmycode/following{/other_user}","gists_url":"https://api.github.com/users/testmycode/gists{/gist_id}","starred_url":"https://api.github.com/users/testmycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testmycode/subscriptions","organizations_url":"https://api.github.com/users/testmycode/orgs","repos_url":"https://api.github.com/users/testmycode/repos","events_url":"https://api.github.com/users/testmycode/events{/privacy}","received_events_url":"https://api.github.com/users/testmycode/received_events","type":"Organization","site_admin":false},"repo":{"id":1995270,"name":"tmc-server","full_name":"testmycode/tmc-server","owner":{"login":"testmycode","id":893468,"avatar_url":"https://avatars.githubusercontent.com/u/893468?v=3","gravatar_id":"","url":"https://api.github.com/users/testmycode","html_url":"https://github.com/testmycode","followers_url":"https://api.github.com/users/testmycode/followers","following_url":"https://api.github.com/users/testmycode/following{/other_user}","gists_url":"https://api.github.com/users/testmycode/gists{/gist_id}","starred_url":"https://api.github.com/users/testmycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testmycode/subscriptions","organizations_url":"https://api.github.com/users/testmycode/orgs","repos_url":"https://api.github.com/users/testmycode/repos","events_url":"https://api.github.com/users/testmycode/events{/privacy}","received_events_url":"https://api.github.com/users/testmycode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/testmycode/tmc-server","description":"Test My Code exercise server used by e.g. http://mooc.fi/","fork":false,"url":"https://api.github.com/repos/testmycode/tmc-server","forks_url":"https://api.github.com/repos/testmycode/tmc-server/forks","keys_url":"https://api.github.com/repos/testmycode/tmc-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/testmycode/tmc-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/testmycode/tmc-server/teams","hooks_url":"https://api.github.com/repos/testmycode/tmc-server/hooks","issue_events_url":"https://api.github.com/repos/testmycode/tmc-server/issues/events{/number}","events_url":"https://api.github.com/repos/testmycode/tmc-server/events","assignees_url":"https://api.github.com/repos/testmycode/tmc-server/assignees{/user}","branches_url":"https://api.github.com/repos/testmycode/tmc-server/branches{/branch}","tags_url":"https://api.github.com/repos/testmycode/tmc-server/tags","blobs_url":"https://api.github.com/repos/testmycode/tmc-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/testmycode/tmc-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/testmycode/tmc-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/testmycode/tmc-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/testmycode/tmc-server/statuses/{sha}","languages_url":"https://api.github.com/repos/testmycode/tmc-server/languages","stargazers_url":"https://api.github.com/repos/testmycode/tmc-server/stargazers","contributors_url":"https://api.github.com/repos/testmycode/tmc-server/contributors","subscribers_url":"https://api.github.com/repos/testmycode/tmc-server/subscribers","subscription_url":"https://api.github.com/repos/testmycode/tmc-server/subscription","commits_url":"https://api.github.com/repos/testmycode/tmc-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/testmycode/tmc-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/testmycode/tmc-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/testmycode/tmc-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/testmycode/tmc-server/contents/{+path}","compare_url":"https://api.github.com/repos/testmycode/tmc-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/testmycode/tmc-server/merges","archive_url":"https://api.github.com/repos/testmycode/tmc-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/testmycode/tmc-server/downloads","issues_url":"https://api.github.com/repos/testmycode/tmc-server/issues{/number}","pulls_url":"https://api.github.com/repos/testmycode/tmc-server/pulls{/number}","milestones_url":"https://api.github.com/repos/testmycode/tmc-server/milestones{/number}","notifications_url":"https://api.github.com/repos/testmycode/tmc-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/testmycode/tmc-server/labels{/name}","releases_url":"https://api.github.com/repos/testmycode/tmc-server/releases{/id}","deployments_url":"https://api.github.com/repos/testmycode/tmc-server/deployments","created_at":"2011-07-04T12:29:36Z","updated_at":"2016-10-26T09:09:35Z","pushed_at":"2016-11-01T12:37:40Z","git_url":"git://github.com/testmycode/tmc-server.git","ssh_url":"git@github.com:testmycode/tmc-server.git","clone_url":"https://github.com/testmycode/tmc-server.git","svn_url":"https://github.com/testmycode/tmc-server","homepage":"","size":8837,"stargazers_count":17,"watchers_count":17,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":150,"forks":21,"open_issues":150,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/testmycode/tmc-server/pulls/449"},"html":{"href":"https://github.com/testmycode/tmc-server/pull/449"},"issue":{"href":"https://api.github.com/repos/testmycode/tmc-server/issues/449"},"comments":{"href":"https://api.github.com/repos/testmycode/tmc-server/issues/449/comments"},"review_comments":{"href":"https://api.github.com/repos/testmycode/tmc-server/pulls/449/comments"},"review_comment":{"href":"https://api.github.com/repos/testmycode/tmc-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/testmycode/tmc-server/pulls/449/commits"},"statuses":{"href":"https://api.github.com/repos/testmycode/tmc-server/statuses/568858b1ecc6484ed26e5b22cc1a58079dc2b30c"}}}}
{"actor":{"display_login":"nygrenh"}}