{"action":"created","comment":{"url":"https://api.github.com/repos/python-cn/firefly/pulls/comments/28642749","id":28642749,"diff_hunk":"@@ -0,0 +1,30 @@\n+# coding=utf-8\n+from flask import jsonify\n+from flask.views import MethodView\n+\n+from firefly.models import Category","path":"firefly/views/api/category.py","position":5,"original_position":5,"commit_id":"db7a988a756912be665bb09a51c681674d71129b","original_commit_id":"db7a988a756912be665bb09a51c681674d71129b","user":{"login":"halfcrazy","id":4113173,"avatar_url":"https://avatars.githubusercontent.com/u/4113173?v=3","gravatar_id":"","url":"https://api.github.com/users/halfcrazy","html_url":"https://github.com/halfcrazy","followers_url":"https://api.github.com/users/halfcrazy/followers","following_url":"https://api.github.com/users/halfcrazy/following{/other_user}","gists_url":"https://api.github.com/users/halfcrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/halfcrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfcrazy/subscriptions","organizations_url":"https://api.github.com/users/halfcrazy/orgs","repos_url":"https://api.github.com/users/halfcrazy/repos","events_url":"https://api.github.com/users/halfcrazy/events{/privacy}","received_events_url":"https://api.github.com/users/halfcrazy/received_events","type":"User","site_admin":false},"body":"嗯。还没来及改","created_at":"2015-04-18T09:47:18Z","updated_at":"2015-04-18T09:47:18Z","html_url":"https://github.com/python-cn/firefly/pull/23#discussion_r28642749","pull_request_url":"https://api.github.com/repos/python-cn/firefly/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/python-cn/firefly/pulls/comments/28642749"},"html":{"href":"https://github.com/python-cn/firefly/pull/23#discussion_r28642749"},"pull_request":{"href":"https://api.github.com/repos/python-cn/firefly/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/python-cn/firefly/pulls/23","id":33598462,"html_url":"https://github.com/python-cn/firefly/pull/23","diff_url":"https://github.com/python-cn/firefly/pull/23.diff","patch_url":"https://github.com/python-cn/firefly/pull/23.patch","issue_url":"https://api.github.com/repos/python-cn/firefly/issues/23","number":23,"state":"open","locked":false,"title":"添加主题分类查询接口","user":{"login":"halfcrazy","id":4113173,"avatar_url":"https://avatars.githubusercontent.com/u/4113173?v=3","gravatar_id":"","url":"https://api.github.com/users/halfcrazy","html_url":"https://github.com/halfcrazy","followers_url":"https://api.github.com/users/halfcrazy/followers","following_url":"https://api.github.com/users/halfcrazy/following{/other_user}","gists_url":"https://api.github.com/users/halfcrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/halfcrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfcrazy/subscriptions","organizations_url":"https://api.github.com/users/halfcrazy/orgs","repos_url":"https://api.github.com/users/halfcrazy/repos","events_url":"https://api.github.com/users/halfcrazy/events{/privacy}","received_events_url":"https://api.github.com/users/halfcrazy/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-18T07:55:40Z","updated_at":"2015-04-18T09:47:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47f0310f4d32241df9b8538883db7878cc01713d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/python-cn/firefly/pulls/23/commits","review_comments_url":"https://api.github.com/repos/python-cn/firefly/pulls/23/comments","review_comment_url":"https://api.github.com/repos/python-cn/firefly/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python-cn/firefly/issues/23/comments","statuses_url":"https://api.github.com/repos/python-cn/firefly/statuses/db7a988a756912be665bb09a51c681674d71129b","head":{"label":"halfcrazy:master","ref":"master","sha":"db7a988a756912be665bb09a51c681674d71129b","user":{"login":"halfcrazy","id":4113173,"avatar_url":"https://avatars.githubusercontent.com/u/4113173?v=3","gravatar_id":"","url":"https://api.github.com/users/halfcrazy","html_url":"https://github.com/halfcrazy","followers_url":"https://api.github.com/users/halfcrazy/followers","following_url":"https://api.github.com/users/halfcrazy/following{/other_user}","gists_url":"https://api.github.com/users/halfcrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/halfcrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfcrazy/subscriptions","organizations_url":"https://api.github.com/users/halfcrazy/orgs","repos_url":"https://api.github.com/users/halfcrazy/repos","events_url":"https://api.github.com/users/halfcrazy/events{/privacy}","received_events_url":"https://api.github.com/users/halfcrazy/received_events","type":"User","site_admin":false},"repo":{"id":33865661,"name":"firefly","full_name":"halfcrazy/firefly","owner":{"login":"halfcrazy","id":4113173,"avatar_url":"https://avatars.githubusercontent.com/u/4113173?v=3","gravatar_id":"","url":"https://api.github.com/users/halfcrazy","html_url":"https://github.com/halfcrazy","followers_url":"https://api.github.com/users/halfcrazy/followers","following_url":"https://api.github.com/users/halfcrazy/following{/other_user}","gists_url":"https://api.github.com/users/halfcrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/halfcrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfcrazy/subscriptions","organizations_url":"https://api.github.com/users/halfcrazy/orgs","repos_url":"https://api.github.com/users/halfcrazy/repos","events_url":"https://api.github.com/users/halfcrazy/events{/privacy}","received_events_url":"https://api.github.com/users/halfcrazy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/halfcrazy/firefly","description":"A social forum for pythonista","fork":true,"url":"https://api.github.com/repos/halfcrazy/firefly","forks_url":"https://api.github.com/repos/halfcrazy/firefly/forks","keys_url":"https://api.github.com/repos/halfcrazy/firefly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halfcrazy/firefly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halfcrazy/firefly/teams","hooks_url":"https://api.github.com/repos/halfcrazy/firefly/hooks","issue_events_url":"https://api.github.com/repos/halfcrazy/firefly/issues/events{/number}","events_url":"https://api.github.com/repos/halfcrazy/firefly/events","assignees_url":"https://api.github.com/repos/halfcrazy/firefly/assignees{/user}","branches_url":"https://api.github.com/repos/halfcrazy/firefly/branches{/branch}","tags_url":"https://api.github.com/repos/halfcrazy/firefly/tags","blobs_url":"https://api.github.com/repos/halfcrazy/firefly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halfcrazy/firefly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halfcrazy/firefly/git/refs{/sha}","trees_url":"https://api.github.com/repos/halfcrazy/firefly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halfcrazy/firefly/statuses/{sha}","languages_url":"https://api.github.com/repos/halfcrazy/firefly/languages","stargazers_url":"https://api.github.com/repos/halfcrazy/firefly/stargazers","contributors_url":"https://api.github.com/repos/halfcrazy/firefly/contributors","subscribers_url":"https://api.github.com/repos/halfcrazy/firefly/subscribers","subscription_url":"https://api.github.com/repos/halfcrazy/firefly/subscription","commits_url":"https://api.github.com/repos/halfcrazy/firefly/commits{/sha}","git_commits_url":"https://api.github.com/repos/halfcrazy/firefly/git/commits{/sha}","comments_url":"https://api.github.com/repos/halfcrazy/firefly/comments{/number}","issue_comment_url":"https://api.github.com/repos/halfcrazy/firefly/issues/comments{/number}","contents_url":"https://api.github.com/repos/halfcrazy/firefly/contents/{+path}","compare_url":"https://api.github.com/repos/halfcrazy/firefly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halfcrazy/firefly/merges","archive_url":"https://api.github.com/repos/halfcrazy/firefly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halfcrazy/firefly/downloads","issues_url":"https://api.github.com/repos/halfcrazy/firefly/issues{/number}","pulls_url":"https://api.github.com/repos/halfcrazy/firefly/pulls{/number}","milestones_url":"https://api.github.com/repos/halfcrazy/firefly/milestones{/number}","notifications_url":"https://api.github.com/repos/halfcrazy/firefly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halfcrazy/firefly/labels{/name}","releases_url":"https://api.github.com/repos/halfcrazy/firefly/releases{/id}","created_at":"2015-04-13T11:52:58Z","updated_at":"2015-04-18T08:25:16Z","pushed_at":"2015-04-18T08:25:16Z","git_url":"git://github.com/halfcrazy/firefly.git","ssh_url":"git@github.com:halfcrazy/firefly.git","clone_url":"https://github.com/halfcrazy/firefly.git","svn_url":"https://github.com/halfcrazy/firefly","homepage":"http://python-cn.github.io/guide/","size":5031,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"python-cn:master","ref":"master","sha":"feaf4b1ff91c00a08cf2f4f14bd18374f85dd992","user":{"login":"python-cn","id":11907328,"avatar_url":"https://avatars.githubusercontent.com/u/11907328?v=3","gravatar_id":"","url":"https://api.github.com/users/python-cn","html_url":"https://github.com/python-cn","followers_url":"https://api.github.com/users/python-cn/followers","following_url":"https://api.github.com/users/python-cn/following{/other_user}","gists_url":"https://api.github.com/users/python-cn/gists{/gist_id}","starred_url":"https://api.github.com/users/python-cn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-cn/subscriptions","organizations_url":"https://api.github.com/users/python-cn/orgs","repos_url":"https://api.github.com/users/python-cn/repos","events_url":"https://api.github.com/users/python-cn/events{/privacy}","received_events_url":"https://api.github.com/users/python-cn/received_events","type":"Organization","site_admin":false},"repo":{"id":33606054,"name":"firefly","full_name":"python-cn/firefly","owner":{"login":"python-cn","id":11907328,"avatar_url":"https://avatars.githubusercontent.com/u/11907328?v=3","gravatar_id":"","url":"https://api.github.com/users/python-cn","html_url":"https://github.com/python-cn","followers_url":"https://api.github.com/users/python-cn/followers","following_url":"https://api.github.com/users/python-cn/following{/other_user}","gists_url":"https://api.github.com/users/python-cn/gists{/gist_id}","starred_url":"https://api.github.com/users/python-cn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-cn/subscriptions","organizations_url":"https://api.github.com/users/python-cn/orgs","repos_url":"https://api.github.com/users/python-cn/repos","events_url":"https://api.github.com/users/python-cn/events{/privacy}","received_events_url":"https://api.github.com/users/python-cn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-cn/firefly","description":"A social forum for pythonista","fork":false,"url":"https://api.github.com/repos/python-cn/firefly","forks_url":"https://api.github.com/repos/python-cn/firefly/forks","keys_url":"https://api.github.com/repos/python-cn/firefly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-cn/firefly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-cn/firefly/teams","hooks_url":"https://api.github.com/repos/python-cn/firefly/hooks","issue_events_url":"https://api.github.com/repos/python-cn/firefly/issues/events{/number}","events_url":"https://api.github.com/repos/python-cn/firefly/events","assignees_url":"https://api.github.com/repos/python-cn/firefly/assignees{/user}","branches_url":"https://api.github.com/repos/python-cn/firefly/branches{/branch}","tags_url":"https://api.github.com/repos/python-cn/firefly/tags","blobs_url":"https://api.github.com/repos/python-cn/firefly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-cn/firefly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-cn/firefly/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-cn/firefly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-cn/firefly/statuses/{sha}","languages_url":"https://api.github.com/repos/python-cn/firefly/languages","stargazers_url":"https://api.github.com/repos/python-cn/firefly/stargazers","contributors_url":"https://api.github.com/repos/python-cn/firefly/contributors","subscribers_url":"https://api.github.com/repos/python-cn/firefly/subscribers","subscription_url":"https://api.github.com/repos/python-cn/firefly/subscription","commits_url":"https://api.github.com/repos/python-cn/firefly/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-cn/firefly/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-cn/firefly/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-cn/firefly/issues/comments{/number}","contents_url":"https://api.github.com/repos/python-cn/firefly/contents/{+path}","compare_url":"https://api.github.com/repos/python-cn/firefly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-cn/firefly/merges","archive_url":"https://api.github.com/repos/python-cn/firefly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-cn/firefly/downloads","issues_url":"https://api.github.com/repos/python-cn/firefly/issues{/number}","pulls_url":"https://api.github.com/repos/python-cn/firefly/pulls{/number}","milestones_url":"https://api.github.com/repos/python-cn/firefly/milestones{/number}","notifications_url":"https://api.github.com/repos/python-cn/firefly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-cn/firefly/labels{/name}","releases_url":"https://api.github.com/repos/python-cn/firefly/releases{/id}","created_at":"2015-04-08T12:40:49Z","updated_at":"2015-04-18T07:43:07Z","pushed_at":"2015-04-18T08:25:16Z","git_url":"git://github.com/python-cn/firefly.git","ssh_url":"git@github.com:python-cn/firefly.git","clone_url":"https://github.com/python-cn/firefly.git","svn_url":"https://github.com/python-cn/firefly","homepage":"http://python-cn.github.io/guide/","size":5418,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":2,"forks":12,"open_issues":2,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python-cn/firefly/pulls/23"},"html":{"href":"https://github.com/python-cn/firefly/pull/23"},"issue":{"href":"https://api.github.com/repos/python-cn/firefly/issues/23"},"comments":{"href":"https://api.github.com/repos/python-cn/firefly/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/python-cn/firefly/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/python-cn/firefly/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python-cn/firefly/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/python-cn/firefly/statuses/db7a988a756912be665bb09a51c681674d71129b"}}}}