{"action":"created","comment":{"url":"https://api.github.com/repos/flxwu/contest.io/pulls/comments/192583695","pull_request_review_id":125389718,"id":192583695,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjU4MzY5NQ==","diff_hunk":"@@ -72,10 +72,10 @@ The `SECRET_KEY` variable can be set to whatever you want.\n |---|---|---|---|---|---|\n | GET | tags | - | Comma-seperated list of tags <br> to be matched by <br> the returned tasks <br> _Returns the task_ | No | `/api/tasks?tags=graphs,implementation` |\n \n-### `/api/contests`\n+### `/api/contest`\n \n | Method | Parameter | HTTP Header <br> and Body | Description | Required | Example |\n |---|---|---|---|---|---|\n-| GET | code | - | The contest's hexadecimal code <br> _Returns the contest_ | Yes | `/api/contests?code=f9bf78b9a18ce6d46a0cd2b0b86df9da` |\n+| GET | code | - | The contest's hexadecimal code <br> _Returns the contest_ | Yes | `/api/contest?code=f9bf78b9a18ce6d46a0cd2b0b86df9da` |","path":"README.md","position":10,"original_position":10,"commit_id":"f2a0c773f80ae9d69f4a8829e38c248eac4ea3ee","original_commit_id":"f2a0c773f80ae9d69f4a8829e38c248eac4ea3ee","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Line length","created_at":"2018-06-03T09:49:38Z","updated_at":"2018-06-03T09:49:38Z","html_url":"https://github.com/flxwu/contest.io/pull/116#discussion_r192583695","pull_request_url":"https://api.github.com/repos/flxwu/contest.io/pulls/116","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/flxwu/contest.io/pulls/comments/192583695"},"html":{"href":"https://github.com/flxwu/contest.io/pull/116#discussion_r192583695"},"pull_request":{"href":"https://api.github.com/repos/flxwu/contest.io/pulls/116"}}},"pull_request":{"url":"https://api.github.com/repos/flxwu/contest.io/pulls/116","id":192239121,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMjM5MTIx","html_url":"https://github.com/flxwu/contest.io/pull/116","diff_url":"https://github.com/flxwu/contest.io/pull/116.diff","patch_url":"https://github.com/flxwu/contest.io/pull/116.patch","issue_url":"https://api.github.com/repos/flxwu/contest.io/issues/116","number":116,"state":"open","locked":false,"title":"add /api/contests (differed from /api/contest), /api/usergroups, adapt models","user":{"login":"flxwu","id":16862997,"node_id":"MDQ6VXNlcjE2ODYyOTk3","avatar_url":"https://avatars0.githubusercontent.com/u/16862997?v=4","gravatar_id":"","url":"https://api.github.com/users/flxwu","html_url":"https://github.com/flxwu","followers_url":"https://api.github.com/users/flxwu/followers","following_url":"https://api.github.com/users/flxwu/following{/other_user}","gists_url":"https://api.github.com/users/flxwu/gists{/gist_id}","starred_url":"https://api.github.com/users/flxwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flxwu/subscriptions","organizations_url":"https://api.github.com/users/flxwu/orgs","repos_url":"https://api.github.com/users/flxwu/repos","events_url":"https://api.github.com/users/flxwu/events{/privacy}","received_events_url":"https://api.github.com/users/flxwu/received_events","type":"User","site_admin":false},"body":"* `/api/contests` GET returns all visible contests\r\n* `/api/contest` remains as before, but rewritten to insert/read groups to/from group_in_contest table\r\n* `/api/usergroups?groupID=[...]` GET returns all members of usergroup groupID\r\n* `/api/usergroups?users=[...]` POST inserts new user to group\r\n* `/api/usergroups?group=[...]` POST inserts new group","created_at":"2018-06-03T09:43:36Z","updated_at":"2018-06-03T09:49:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56e2398906702bc96eaa59e3a94b3ede2903b3c3","assignee":{"login":"flxwu","id":16862997,"node_id":"MDQ6VXNlcjE2ODYyOTk3","avatar_url":"https://avatars0.githubusercontent.com/u/16862997?v=4","gravatar_id":"","url":"https://api.github.com/users/flxwu","html_url":"https://github.com/flxwu","followers_url":"https://api.github.com/users/flxwu/followers","following_url":"https://api.github.com/users/flxwu/following{/other_user}","gists_url":"https://api.github.com/users/flxwu/gists{/gist_id}","starred_url":"https://api.github.com/users/flxwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flxwu/subscriptions","organizations_url":"https://api.github.com/users/flxwu/orgs","repos_url":"https://api.github.com/users/flxwu/repos","events_url":"https://api.github.com/users/flxwu/events{/privacy}","received_events_url":"https://api.github.com/users/flxwu/received_events","type":"User","site_admin":false},"assignees":[{"login":"flxwu","id":16862997,"node_id":"MDQ6VXNlcjE2ODYyOTk3","avatar_url":"https://avatars0.githubusercontent.com/u/16862997?v=4","gravatar_id":"","url":"https://api.github.com/users/flxwu","html_url":"https://github.com/flxwu","followers_url":"https://api.github.com/users/flxwu/followers","following_url":"https://api.github.com/users/flxwu/following{/other_user}","gists_url":"https://api.github.com/users/flxwu/gists{/gist_id}","starred_url":"https://api.github.com/users/flxwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flxwu/subscriptions","organizations_url":"https://api.github.com/users/flxwu/orgs","repos_url":"https://api.github.com/users/flxwu/repos","events_url":"https://api.github.com/users/flxwu/events{/privacy}","received_events_url":"https://api.github.com/users/flxwu/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":912572899,"node_id":"MDU6TGFiZWw5MTI1NzI4OTk=","url":"https://api.github.com/repos/flxwu/contest.io/labels/review","name":"review","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/flxwu/contest.io/pulls/116/commits","review_comments_url":"https://api.github.com/repos/flxwu/contest.io/pulls/116/comments","review_comment_url":"https://api.github.com/repos/flxwu/contest.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flxwu/contest.io/issues/116/comments","statuses_url":"https://api.github.com/repos/flxwu/contest.io/statuses/f2a0c773f80ae9d69f4a8829e38c248eac4ea3ee","head":{"label":"flxwu:flask-api-usergroups","ref":"flask-api-usergroups","sha":"f2a0c773f80ae9d69f4a8829e38c248eac4ea3ee","user":{"login":"flxwu","id":16862997,"node_id":"MDQ6VXNlcjE2ODYyOTk3","avatar_url":"https://avatars0.githubusercontent.com/u/16862997?v=4","gravatar_id":"","url":"https://api.github.com/users/flxwu","html_url":"https://github.com/flxwu","followers_url":"https://api.github.com/users/flxwu/followers","following_url":"https://api.github.com/users/flxwu/following{/other_user}","gists_url":"https://api.github.com/users/flxwu/gists{/gist_id}","starred_url":"https://api.github.com/users/flxwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flxwu/subscriptions","organizations_url":"https://api.github.com/users/flxwu/orgs","repos_url":"https://api.github.com/users/flxwu/repos","events_url":"https://api.github.com/users/flxwu/events{/privacy}","received_events_url":"https://api.github.com/users/flxwu/received_events","type":"User","site_admin":false},"repo":{"id":129965754,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk5NjU3NTQ=","name":"contest.io","full_name":"flxwu/contest.io","owner":{"login":"flxwu","id":16862997,"node_id":"MDQ6VXNlcjE2ODYyOTk3","avatar_url":"https://avatars0.githubusercontent.com/u/16862997?v=4","gravatar_id":"","url":"https://api.github.com/users/flxwu","html_url":"https://github.com/flxwu","followers_url":"https://api.github.com/users/flxwu/followers","following_url":"https://api.github.com/users/flxwu/following{/other_user}","gists_url":"https://api.github.com/users/flxwu/gists{/gist_id}","starred_url":"https://api.github.com/users/flxwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flxwu/subscriptions","organizations_url":"https://api.github.com/users/flxwu/orgs","repos_url":"https://api.github.com/users/flxwu/repos","events_url":"https://api.github.com/users/flxwu/events{/privacy}","received_events_url":"https://api.github.com/users/flxwu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flxwu/contest.io","description":"Create opinionated programming contests for your team! Built on Vue.js and Flask","fork":false,"url":"https://api.github.com/repos/flxwu/contest.io","forks_url":"https://api.github.com/repos/flxwu/contest.io/forks","keys_url":"https://api.github.com/repos/flxwu/contest.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flxwu/contest.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flxwu/contest.io/teams","hooks_url":"https://api.github.com/repos/flxwu/contest.io/hooks","issue_events_url":"https://api.github.com/repos/flxwu/contest.io/issues/events{/number}","events_url":"https://api.github.com/repos/flxwu/contest.io/events","assignees_url":"https://api.github.com/repos/flxwu/contest.io/assignees{/user}","branches_url":"https://api.github.com/repos/flxwu/contest.io/branches{/branch}","tags_url":"https://api.github.com/repos/flxwu/contest.io/tags","blobs_url":"https://api.github.com/repos/flxwu/contest.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flxwu/contest.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flxwu/contest.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/flxwu/contest.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flxwu/contest.io/statuses/{sha}","languages_url":"https://api.github.com/repos/flxwu/contest.io/languages","stargazers_url":"https://api.github.com/repos/flxwu/contest.io/stargazers","contributors_url":"https://api.github.com/repos/flxwu/contest.io/contributors","subscribers_url":"https://api.github.com/repos/flxwu/contest.io/subscribers","subscription_url":"https://api.github.com/repos/flxwu/contest.io/subscription","commits_url":"https://api.github.com/repos/flxwu/contest.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/flxwu/contest.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/flxwu/contest.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/flxwu/contest.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/flxwu/contest.io/contents/{+path}","compare_url":"https://api.github.com/repos/flxwu/contest.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flxwu/contest.io/merges","archive_url":"https://api.github.com/repos/flxwu/contest.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flxwu/contest.io/downloads","issues_url":"https://api.github.com/repos/flxwu/contest.io/issues{/number}","pulls_url":"https://api.github.com/repos/flxwu/contest.io/pulls{/number}","milestones_url":"https://api.github.com/repos/flxwu/contest.io/milestones{/number}","notifications_url":"https://api.github.com/repos/flxwu/contest.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flxwu/contest.io/labels{/name}","releases_url":"https://api.github.com/repos/flxwu/contest.io/releases{/id}","deployments_url":"https://api.github.com/repos/flxwu/contest.io/deployments","created_at":"2018-04-17T21:13:42Z","updated_at":"2018-05-27T09:22:12Z","pushed_at":"2018-06-03T09:49:17Z","git_url":"git://github.com/flxwu/contest.io.git","ssh_url":"git@github.com:flxwu/contest.io.git","clone_url":"https://github.com/flxwu/contest.io.git","svn_url":"https://github.com/flxwu/contest.io","homepage":"https://contestio-dev.herokuapp.com","size":1664,"stargazers_count":0,"watchers_count":0,"language":"Vue","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":31,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":31,"watchers":0,"default_branch":"master"}},"base":{"label":"flxwu:develop","ref":"develop","sha":"3770476feb2e81476e8c903119c7ceec355e0c1b","user":{"login":"flxwu","id":16862997,"node_id":"MDQ6VXNlcjE2ODYyOTk3","avatar_url":"https://avatars0.githubusercontent.com/u/16862997?v=4","gravatar_id":"","url":"https://api.github.com/users/flxwu","html_url":"https://github.com/flxwu","followers_url":"https://api.github.com/users/flxwu/followers","following_url":"https://api.github.com/users/flxwu/following{/other_user}","gists_url":"https://api.github.com/users/flxwu/gists{/gist_id}","starred_url":"https://api.github.com/users/flxwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flxwu/subscriptions","organizations_url":"https://api.github.com/users/flxwu/orgs","repos_url":"https://api.github.com/users/flxwu/repos","events_url":"https://api.github.com/users/flxwu/events{/privacy}","received_events_url":"https://api.github.com/users/flxwu/received_events","type":"User","site_admin":false},"repo":{"id":129965754,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk5NjU3NTQ=","name":"contest.io","full_name":"flxwu/contest.io","owner":{"login":"flxwu","id":16862997,"node_id":"MDQ6VXNlcjE2ODYyOTk3","avatar_url":"https://avatars0.githubusercontent.com/u/16862997?v=4","gravatar_id":"","url":"https://api.github.com/users/flxwu","html_url":"https://github.com/flxwu","followers_url":"https://api.github.com/users/flxwu/followers","following_url":"https://api.github.com/users/flxwu/following{/other_user}","gists_url":"https://api.github.com/users/flxwu/gists{/gist_id}","starred_url":"https://api.github.com/users/flxwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flxwu/subscriptions","organizations_url":"https://api.github.com/users/flxwu/orgs","repos_url":"https://api.github.com/users/flxwu/repos","events_url":"https://api.github.com/users/flxwu/events{/privacy}","received_events_url":"https://api.github.com/users/flxwu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flxwu/contest.io","description":"Create opinionated programming contests for your team! Built on Vue.js and Flask","fork":false,"url":"https://api.github.com/repos/flxwu/contest.io","forks_url":"https://api.github.com/repos/flxwu/contest.io/forks","keys_url":"https://api.github.com/repos/flxwu/contest.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flxwu/contest.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flxwu/contest.io/teams","hooks_url":"https://api.github.com/repos/flxwu/contest.io/hooks","issue_events_url":"https://api.github.com/repos/flxwu/contest.io/issues/events{/number}","events_url":"https://api.github.com/repos/flxwu/contest.io/events","assignees_url":"https://api.github.com/repos/flxwu/contest.io/assignees{/user}","branches_url":"https://api.github.com/repos/flxwu/contest.io/branches{/branch}","tags_url":"https://api.github.com/repos/flxwu/contest.io/tags","blobs_url":"https://api.github.com/repos/flxwu/contest.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flxwu/contest.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flxwu/contest.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/flxwu/contest.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flxwu/contest.io/statuses/{sha}","languages_url":"https://api.github.com/repos/flxwu/contest.io/languages","stargazers_url":"https://api.github.com/repos/flxwu/contest.io/stargazers","contributors_url":"https://api.github.com/repos/flxwu/contest.io/contributors","subscribers_url":"https://api.github.com/repos/flxwu/contest.io/subscribers","subscription_url":"https://api.github.com/repos/flxwu/contest.io/subscription","commits_url":"https://api.github.com/repos/flxwu/contest.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/flxwu/contest.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/flxwu/contest.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/flxwu/contest.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/flxwu/contest.io/contents/{+path}","compare_url":"https://api.github.com/repos/flxwu/contest.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flxwu/contest.io/merges","archive_url":"https://api.github.com/repos/flxwu/contest.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flxwu/contest.io/downloads","issues_url":"https://api.github.com/repos/flxwu/contest.io/issues{/number}","pulls_url":"https://api.github.com/repos/flxwu/contest.io/pulls{/number}","milestones_url":"https://api.github.com/repos/flxwu/contest.io/milestones{/number}","notifications_url":"https://api.github.com/repos/flxwu/contest.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flxwu/contest.io/labels{/name}","releases_url":"https://api.github.com/repos/flxwu/contest.io/releases{/id}","deployments_url":"https://api.github.com/repos/flxwu/contest.io/deployments","created_at":"2018-04-17T21:13:42Z","updated_at":"2018-05-27T09:22:12Z","pushed_at":"2018-06-03T09:49:17Z","git_url":"git://github.com/flxwu/contest.io.git","ssh_url":"git@github.com:flxwu/contest.io.git","clone_url":"https://github.com/flxwu/contest.io.git","svn_url":"https://github.com/flxwu/contest.io","homepage":"https://contestio-dev.herokuapp.com","size":1664,"stargazers_count":0,"watchers_count":0,"language":"Vue","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":31,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":31,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flxwu/contest.io/pulls/116"},"html":{"href":"https://github.com/flxwu/contest.io/pull/116"},"issue":{"href":"https://api.github.com/repos/flxwu/contest.io/issues/116"},"comments":{"href":"https://api.github.com/repos/flxwu/contest.io/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/flxwu/contest.io/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/flxwu/contest.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flxwu/contest.io/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/flxwu/contest.io/statuses/f2a0c773f80ae9d69f4a8829e38c248eac4ea3ee"}},"author_association":"OWNER"}}
{"actor":{"display_login":"codeclimate"}}