{"action":"created","comment":{"url":"https://api.github.com/repos/RushHours/rush-api/pulls/comments/40506464","id":40506464,"diff_hunk":"@@ -1,14 +1,30 @@\n from flask import Flask\n from flask_restful import Resource, Api\n+from flask_jwt import JWT, jwt_required\n+from flask.ext.sqlalchemy import SQLAlchemy\n+from models import User\n \n app = Flask(__name__)\n+app.config['SECRET_KEY'] = 'super-secret'","path":"rushapi/rush.py","position":8,"original_position":8,"commit_id":"525ea73a0ed10a45a20b31932ec242773702bbd6","original_commit_id":"525ea73a0ed10a45a20b31932ec242773702bbd6","user":{"login":"martin-damien","id":295478,"avatar_url":"https://avatars.githubusercontent.com/u/295478?v=3","gravatar_id":"","url":"https://api.github.com/users/martin-damien","html_url":"https://github.com/martin-damien","followers_url":"https://api.github.com/users/martin-damien/followers","following_url":"https://api.github.com/users/martin-damien/following{/other_user}","gists_url":"https://api.github.com/users/martin-damien/gists{/gist_id}","starred_url":"https://api.github.com/users/martin-damien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martin-damien/subscriptions","organizations_url":"https://api.github.com/users/martin-damien/orgs","repos_url":"https://api.github.com/users/martin-damien/repos","events_url":"https://api.github.com/users/martin-damien/events{/privacy}","received_events_url":"https://api.github.com/users/martin-damien/received_events","type":"User","site_admin":false},"body":"We will need to load those settings from a configuration file :\r\n\r\n``` bash\r\n$ rush -c config.yml\r\n```","created_at":"2015-09-27T16:46:19Z","updated_at":"2015-09-27T16:46:19Z","html_url":"https://github.com/RushHours/rush-api/pull/5#discussion_r40506464","pull_request_url":"https://api.github.com/repos/RushHours/rush-api/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/RushHours/rush-api/pulls/comments/40506464"},"html":{"href":"https://github.com/RushHours/rush-api/pull/5#discussion_r40506464"},"pull_request":{"href":"https://api.github.com/repos/RushHours/rush-api/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/RushHours/rush-api/pulls/5","id":46103598,"html_url":"https://github.com/RushHours/rush-api/pull/5","diff_url":"https://github.com/RushHours/rush-api/pull/5.diff","patch_url":"https://github.com/RushHours/rush-api/pull/5.patch","issue_url":"https://api.github.com/repos/RushHours/rush-api/issues/5","number":5,"state":"open","locked":false,"title":"[WIP] Add authentification","user":{"login":"notFloran","id":523981,"avatar_url":"https://avatars.githubusercontent.com/u/523981?v=3","gravatar_id":"","url":"https://api.github.com/users/notFloran","html_url":"https://github.com/notFloran","followers_url":"https://api.github.com/users/notFloran/followers","following_url":"https://api.github.com/users/notFloran/following{/other_user}","gists_url":"https://api.github.com/users/notFloran/gists{/gist_id}","starred_url":"https://api.github.com/users/notFloran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notFloran/subscriptions","organizations_url":"https://api.github.com/users/notFloran/orgs","repos_url":"https://api.github.com/users/notFloran/repos","events_url":"https://api.github.com/users/notFloran/events{/privacy}","received_events_url":"https://api.github.com/users/notFloran/received_events","type":"User","site_admin":false},"body":"Setup database with Flask-SQLAlchemy\r\nSetup api authentification with Flask-JWT\r\nAdd User model","created_at":"2015-09-27T16:13:48Z","updated_at":"2015-09-27T16:46:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8bad7bb21e9e9ecb01081883294a876d9459ac4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RushHours/rush-api/pulls/5/commits","review_comments_url":"https://api.github.com/repos/RushHours/rush-api/pulls/5/comments","review_comment_url":"https://api.github.com/repos/RushHours/rush-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RushHours/rush-api/issues/5/comments","statuses_url":"https://api.github.com/repos/RushHours/rush-api/statuses/525ea73a0ed10a45a20b31932ec242773702bbd6","head":{"label":"RushHours:user","ref":"user","sha":"525ea73a0ed10a45a20b31932ec242773702bbd6","user":{"login":"RushHours","id":14854794,"avatar_url":"https://avatars.githubusercontent.com/u/14854794?v=3","gravatar_id":"","url":"https://api.github.com/users/RushHours","html_url":"https://github.com/RushHours","followers_url":"https://api.github.com/users/RushHours/followers","following_url":"https://api.github.com/users/RushHours/following{/other_user}","gists_url":"https://api.github.com/users/RushHours/gists{/gist_id}","starred_url":"https://api.github.com/users/RushHours/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RushHours/subscriptions","organizations_url":"https://api.github.com/users/RushHours/orgs","repos_url":"https://api.github.com/users/RushHours/repos","events_url":"https://api.github.com/users/RushHours/events{/privacy}","received_events_url":"https://api.github.com/users/RushHours/received_events","type":"Organization","site_admin":false},"repo":{"id":43242085,"name":"rush-api","full_name":"RushHours/rush-api","owner":{"login":"RushHours","id":14854794,"avatar_url":"https://avatars.githubusercontent.com/u/14854794?v=3","gravatar_id":"","url":"https://api.github.com/users/RushHours","html_url":"https://github.com/RushHours","followers_url":"https://api.github.com/users/RushHours/followers","following_url":"https://api.github.com/users/RushHours/following{/other_user}","gists_url":"https://api.github.com/users/RushHours/gists{/gist_id}","starred_url":"https://api.github.com/users/RushHours/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RushHours/subscriptions","organizations_url":"https://api.github.com/users/RushHours/orgs","repos_url":"https://api.github.com/users/RushHours/repos","events_url":"https://api.github.com/users/RushHours/events{/privacy}","received_events_url":"https://api.github.com/users/RushHours/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RushHours/rush-api","description":"API for Rush Hours","fork":false,"url":"https://api.github.com/repos/RushHours/rush-api","forks_url":"https://api.github.com/repos/RushHours/rush-api/forks","keys_url":"https://api.github.com/repos/RushHours/rush-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RushHours/rush-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RushHours/rush-api/teams","hooks_url":"https://api.github.com/repos/RushHours/rush-api/hooks","issue_events_url":"https://api.github.com/repos/RushHours/rush-api/issues/events{/number}","events_url":"https://api.github.com/repos/RushHours/rush-api/events","assignees_url":"https://api.github.com/repos/RushHours/rush-api/assignees{/user}","branches_url":"https://api.github.com/repos/RushHours/rush-api/branches{/branch}","tags_url":"https://api.github.com/repos/RushHours/rush-api/tags","blobs_url":"https://api.github.com/repos/RushHours/rush-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RushHours/rush-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RushHours/rush-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/RushHours/rush-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RushHours/rush-api/statuses/{sha}","languages_url":"https://api.github.com/repos/RushHours/rush-api/languages","stargazers_url":"https://api.github.com/repos/RushHours/rush-api/stargazers","contributors_url":"https://api.github.com/repos/RushHours/rush-api/contributors","subscribers_url":"https://api.github.com/repos/RushHours/rush-api/subscribers","subscription_url":"https://api.github.com/repos/RushHours/rush-api/subscription","commits_url":"https://api.github.com/repos/RushHours/rush-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/RushHours/rush-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/RushHours/rush-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/RushHours/rush-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/RushHours/rush-api/contents/{+path}","compare_url":"https://api.github.com/repos/RushHours/rush-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RushHours/rush-api/merges","archive_url":"https://api.github.com/repos/RushHours/rush-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RushHours/rush-api/downloads","issues_url":"https://api.github.com/repos/RushHours/rush-api/issues{/number}","pulls_url":"https://api.github.com/repos/RushHours/rush-api/pulls{/number}","milestones_url":"https://api.github.com/repos/RushHours/rush-api/milestones{/number}","notifications_url":"https://api.github.com/repos/RushHours/rush-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RushHours/rush-api/labels{/name}","releases_url":"https://api.github.com/repos/RushHours/rush-api/releases{/id}","created_at":"2015-09-27T10:06:16Z","updated_at":"2015-09-27T11:49:31Z","pushed_at":"2015-09-27T16:26:46Z","git_url":"git://github.com/RushHours/rush-api.git","ssh_url":"git@github.com:RushHours/rush-api.git","clone_url":"https://github.com/RushHours/rush-api.git","svn_url":"https://github.com/RushHours/rush-api","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"develop"}},"base":{"label":"RushHours:develop","ref":"develop","sha":"fd1aa71033bc6aabe1a6b796f4f308ec5f9d2750","user":{"login":"RushHours","id":14854794,"avatar_url":"https://avatars.githubusercontent.com/u/14854794?v=3","gravatar_id":"","url":"https://api.github.com/users/RushHours","html_url":"https://github.com/RushHours","followers_url":"https://api.github.com/users/RushHours/followers","following_url":"https://api.github.com/users/RushHours/following{/other_user}","gists_url":"https://api.github.com/users/RushHours/gists{/gist_id}","starred_url":"https://api.github.com/users/RushHours/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RushHours/subscriptions","organizations_url":"https://api.github.com/users/RushHours/orgs","repos_url":"https://api.github.com/users/RushHours/repos","events_url":"https://api.github.com/users/RushHours/events{/privacy}","received_events_url":"https://api.github.com/users/RushHours/received_events","type":"Organization","site_admin":false},"repo":{"id":43242085,"name":"rush-api","full_name":"RushHours/rush-api","owner":{"login":"RushHours","id":14854794,"avatar_url":"https://avatars.githubusercontent.com/u/14854794?v=3","gravatar_id":"","url":"https://api.github.com/users/RushHours","html_url":"https://github.com/RushHours","followers_url":"https://api.github.com/users/RushHours/followers","following_url":"https://api.github.com/users/RushHours/following{/other_user}","gists_url":"https://api.github.com/users/RushHours/gists{/gist_id}","starred_url":"https://api.github.com/users/RushHours/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RushHours/subscriptions","organizations_url":"https://api.github.com/users/RushHours/orgs","repos_url":"https://api.github.com/users/RushHours/repos","events_url":"https://api.github.com/users/RushHours/events{/privacy}","received_events_url":"https://api.github.com/users/RushHours/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RushHours/rush-api","description":"API for Rush Hours","fork":false,"url":"https://api.github.com/repos/RushHours/rush-api","forks_url":"https://api.github.com/repos/RushHours/rush-api/forks","keys_url":"https://api.github.com/repos/RushHours/rush-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RushHours/rush-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RushHours/rush-api/teams","hooks_url":"https://api.github.com/repos/RushHours/rush-api/hooks","issue_events_url":"https://api.github.com/repos/RushHours/rush-api/issues/events{/number}","events_url":"https://api.github.com/repos/RushHours/rush-api/events","assignees_url":"https://api.github.com/repos/RushHours/rush-api/assignees{/user}","branches_url":"https://api.github.com/repos/RushHours/rush-api/branches{/branch}","tags_url":"https://api.github.com/repos/RushHours/rush-api/tags","blobs_url":"https://api.github.com/repos/RushHours/rush-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RushHours/rush-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RushHours/rush-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/RushHours/rush-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RushHours/rush-api/statuses/{sha}","languages_url":"https://api.github.com/repos/RushHours/rush-api/languages","stargazers_url":"https://api.github.com/repos/RushHours/rush-api/stargazers","contributors_url":"https://api.github.com/repos/RushHours/rush-api/contributors","subscribers_url":"https://api.github.com/repos/RushHours/rush-api/subscribers","subscription_url":"https://api.github.com/repos/RushHours/rush-api/subscription","commits_url":"https://api.github.com/repos/RushHours/rush-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/RushHours/rush-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/RushHours/rush-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/RushHours/rush-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/RushHours/rush-api/contents/{+path}","compare_url":"https://api.github.com/repos/RushHours/rush-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RushHours/rush-api/merges","archive_url":"https://api.github.com/repos/RushHours/rush-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RushHours/rush-api/downloads","issues_url":"https://api.github.com/repos/RushHours/rush-api/issues{/number}","pulls_url":"https://api.github.com/repos/RushHours/rush-api/pulls{/number}","milestones_url":"https://api.github.com/repos/RushHours/rush-api/milestones{/number}","notifications_url":"https://api.github.com/repos/RushHours/rush-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RushHours/rush-api/labels{/name}","releases_url":"https://api.github.com/repos/RushHours/rush-api/releases{/id}","created_at":"2015-09-27T10:06:16Z","updated_at":"2015-09-27T11:49:31Z","pushed_at":"2015-09-27T16:26:46Z","git_url":"git://github.com/RushHours/rush-api.git","ssh_url":"git@github.com:RushHours/rush-api.git","clone_url":"https://github.com/RushHours/rush-api.git","svn_url":"https://github.com/RushHours/rush-api","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/RushHours/rush-api/pulls/5"},"html":{"href":"https://github.com/RushHours/rush-api/pull/5"},"issue":{"href":"https://api.github.com/repos/RushHours/rush-api/issues/5"},"comments":{"href":"https://api.github.com/repos/RushHours/rush-api/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/RushHours/rush-api/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/RushHours/rush-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RushHours/rush-api/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/RushHours/rush-api/statuses/525ea73a0ed10a45a20b31932ec242773702bbd6"}}}}