{"action":"created","comment":{"url":"https://api.github.com/repos/4Catalyzer/flask-resty/pulls/comments/48686008","id":48686008,"diff_hunk":"@@ -0,0 +1,45 @@\n+from collections import defaultdict\n+\n+from flask import current_app\n+from flask.ext.resty.spec.operation import Operation\n+from .swagger_utils import flaskpath2swagger\n+\n+RESTY_PLUGIN_NAME = 'resty'","path":"flask_resty/spec/plugin.py","position":7,"original_position":7,"commit_id":"0cfb3ee3cff53c49c3a53c407551f1492d090d90","original_commit_id":"0cfb3ee3cff53c49c3a53c407551f1492d090d90","user":{"login":"itajaja","id":697647,"avatar_url":"https://avatars.githubusercontent.com/u/697647?v=3","gravatar_id":"","url":"https://api.github.com/users/itajaja","html_url":"https://github.com/itajaja","followers_url":"https://api.github.com/users/itajaja/followers","following_url":"https://api.github.com/users/itajaja/following{/other_user}","gists_url":"https://api.github.com/users/itajaja/gists{/gist_id}","starred_url":"https://api.github.com/users/itajaja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itajaja/subscriptions","organizations_url":"https://api.github.com/users/itajaja/orgs","repos_url":"https://api.github.com/users/itajaja/repos","events_url":"https://api.github.com/users/itajaja/events{/privacy}","received_events_url":"https://api.github.com/users/itajaja/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2016-01-02T17:32:12Z","updated_at":"2016-01-02T17:32:12Z","html_url":"https://github.com/4Catalyzer/flask-resty/pull/75#discussion_r48686008","pull_request_url":"https://api.github.com/repos/4Catalyzer/flask-resty/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/4Catalyzer/flask-resty/pulls/comments/48686008"},"html":{"href":"https://github.com/4Catalyzer/flask-resty/pull/75#discussion_r48686008"},"pull_request":{"href":"https://api.github.com/repos/4Catalyzer/flask-resty/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/4Catalyzer/flask-resty/pulls/75","id":54648066,"html_url":"https://github.com/4Catalyzer/flask-resty/pull/75","diff_url":"https://github.com/4Catalyzer/flask-resty/pull/75.diff","patch_url":"https://github.com/4Catalyzer/flask-resty/pull/75.patch","issue_url":"https://api.github.com/repos/4Catalyzer/flask-resty/issues/75","number":75,"state":"open","locked":false,"title":"add apispec plugin","user":{"login":"itajaja","id":697647,"avatar_url":"https://avatars.githubusercontent.com/u/697647?v=3","gravatar_id":"","url":"https://api.github.com/users/itajaja","html_url":"https://github.com/itajaja","followers_url":"https://api.github.com/users/itajaja/followers","following_url":"https://api.github.com/users/itajaja/following{/other_user}","gists_url":"https://api.github.com/users/itajaja/gists{/gist_id}","starred_url":"https://api.github.com/users/itajaja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itajaja/subscriptions","organizations_url":"https://api.github.com/users/itajaja/orgs","repos_url":"https://api.github.com/users/itajaja/repos","events_url":"https://api.github.com/users/itajaja/events{/privacy}","received_events_url":"https://api.github.com/users/itajaja/received_events","type":"User","site_admin":false},"body":"with this pr is possible to use `flask_res.spec` as a plugin to [apispec](https://github.com/marshmallow-code/apispec) to generate swagger options.\r\n\r\nSome remarks: I don’t know if the idea of subclassing `SpecDeclaration`\r\nis a good way to do it. I tried to automate as many things as possible,\r\nwith the result that the end result might not always be correct. The\r\nView can always subclass SpecDeclaration and correct any errors coming\r\nfrom the view superclasses.","created_at":"2015-12-28T11:09:01Z","updated_at":"2016-01-02T17:32:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f2e7ad0fd03f0bb68771ca0e765ff2add8dffc6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/4Catalyzer/flask-resty/pulls/75/commits","review_comments_url":"https://api.github.com/repos/4Catalyzer/flask-resty/pulls/75/comments","review_comment_url":"https://api.github.com/repos/4Catalyzer/flask-resty/pulls/comments{/number}","comments_url":"https://api.github.com/repos/4Catalyzer/flask-resty/issues/75/comments","statuses_url":"https://api.github.com/repos/4Catalyzer/flask-resty/statuses/0cfb3ee3cff53c49c3a53c407551f1492d090d90","head":{"label":"itajaja:apispec-support","ref":"apispec-support","sha":"0cfb3ee3cff53c49c3a53c407551f1492d090d90","user":{"login":"itajaja","id":697647,"avatar_url":"https://avatars.githubusercontent.com/u/697647?v=3","gravatar_id":"","url":"https://api.github.com/users/itajaja","html_url":"https://github.com/itajaja","followers_url":"https://api.github.com/users/itajaja/followers","following_url":"https://api.github.com/users/itajaja/following{/other_user}","gists_url":"https://api.github.com/users/itajaja/gists{/gist_id}","starred_url":"https://api.github.com/users/itajaja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itajaja/subscriptions","organizations_url":"https://api.github.com/users/itajaja/orgs","repos_url":"https://api.github.com/users/itajaja/repos","events_url":"https://api.github.com/users/itajaja/events{/privacy}","received_events_url":"https://api.github.com/users/itajaja/received_events","type":"User","site_admin":false},"repo":{"id":48688612,"name":"flask-resty","full_name":"itajaja/flask-resty","owner":{"login":"itajaja","id":697647,"avatar_url":"https://avatars.githubusercontent.com/u/697647?v=3","gravatar_id":"","url":"https://api.github.com/users/itajaja","html_url":"https://github.com/itajaja","followers_url":"https://api.github.com/users/itajaja/followers","following_url":"https://api.github.com/users/itajaja/following{/other_user}","gists_url":"https://api.github.com/users/itajaja/gists{/gist_id}","starred_url":"https://api.github.com/users/itajaja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itajaja/subscriptions","organizations_url":"https://api.github.com/users/itajaja/orgs","repos_url":"https://api.github.com/users/itajaja/repos","events_url":"https://api.github.com/users/itajaja/events{/privacy}","received_events_url":"https://api.github.com/users/itajaja/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/itajaja/flask-resty","description":"Building blocks for REST APIs for Flask","fork":true,"url":"https://api.github.com/repos/itajaja/flask-resty","forks_url":"https://api.github.com/repos/itajaja/flask-resty/forks","keys_url":"https://api.github.com/repos/itajaja/flask-resty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/itajaja/flask-resty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/itajaja/flask-resty/teams","hooks_url":"https://api.github.com/repos/itajaja/flask-resty/hooks","issue_events_url":"https://api.github.com/repos/itajaja/flask-resty/issues/events{/number}","events_url":"https://api.github.com/repos/itajaja/flask-resty/events","assignees_url":"https://api.github.com/repos/itajaja/flask-resty/assignees{/user}","branches_url":"https://api.github.com/repos/itajaja/flask-resty/branches{/branch}","tags_url":"https://api.github.com/repos/itajaja/flask-resty/tags","blobs_url":"https://api.github.com/repos/itajaja/flask-resty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/itajaja/flask-resty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/itajaja/flask-resty/git/refs{/sha}","trees_url":"https://api.github.com/repos/itajaja/flask-resty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/itajaja/flask-resty/statuses/{sha}","languages_url":"https://api.github.com/repos/itajaja/flask-resty/languages","stargazers_url":"https://api.github.com/repos/itajaja/flask-resty/stargazers","contributors_url":"https://api.github.com/repos/itajaja/flask-resty/contributors","subscribers_url":"https://api.github.com/repos/itajaja/flask-resty/subscribers","subscription_url":"https://api.github.com/repos/itajaja/flask-resty/subscription","commits_url":"https://api.github.com/repos/itajaja/flask-resty/commits{/sha}","git_commits_url":"https://api.github.com/repos/itajaja/flask-resty/git/commits{/sha}","comments_url":"https://api.github.com/repos/itajaja/flask-resty/comments{/number}","issue_comment_url":"https://api.github.com/repos/itajaja/flask-resty/issues/comments{/number}","contents_url":"https://api.github.com/repos/itajaja/flask-resty/contents/{+path}","compare_url":"https://api.github.com/repos/itajaja/flask-resty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/itajaja/flask-resty/merges","archive_url":"https://api.github.com/repos/itajaja/flask-resty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/itajaja/flask-resty/downloads","issues_url":"https://api.github.com/repos/itajaja/flask-resty/issues{/number}","pulls_url":"https://api.github.com/repos/itajaja/flask-resty/pulls{/number}","milestones_url":"https://api.github.com/repos/itajaja/flask-resty/milestones{/number}","notifications_url":"https://api.github.com/repos/itajaja/flask-resty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/itajaja/flask-resty/labels{/name}","releases_url":"https://api.github.com/repos/itajaja/flask-resty/releases{/id}","created_at":"2015-12-28T11:05:47Z","updated_at":"2015-12-28T11:05:48Z","pushed_at":"2015-12-29T17:12:19Z","git_url":"git://github.com/itajaja/flask-resty.git","ssh_url":"git@github.com:itajaja/flask-resty.git","clone_url":"https://github.com/itajaja/flask-resty.git","svn_url":"https://github.com/itajaja/flask-resty","homepage":"","size":127,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"4Catalyzer:master","ref":"master","sha":"b3de7b6aae8f9969fa7bcdb6a1784d33b040d867","user":{"login":"4Catalyzer","id":13967986,"avatar_url":"https://avatars.githubusercontent.com/u/13967986?v=3","gravatar_id":"","url":"https://api.github.com/users/4Catalyzer","html_url":"https://github.com/4Catalyzer","followers_url":"https://api.github.com/users/4Catalyzer/followers","following_url":"https://api.github.com/users/4Catalyzer/following{/other_user}","gists_url":"https://api.github.com/users/4Catalyzer/gists{/gist_id}","starred_url":"https://api.github.com/users/4Catalyzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4Catalyzer/subscriptions","organizations_url":"https://api.github.com/users/4Catalyzer/orgs","repos_url":"https://api.github.com/users/4Catalyzer/repos","events_url":"https://api.github.com/users/4Catalyzer/events{/privacy}","received_events_url":"https://api.github.com/users/4Catalyzer/received_events","type":"Organization","site_admin":false},"repo":{"id":39663289,"name":"flask-resty","full_name":"4Catalyzer/flask-resty","owner":{"login":"4Catalyzer","id":13967986,"avatar_url":"https://avatars.githubusercontent.com/u/13967986?v=3","gravatar_id":"","url":"https://api.github.com/users/4Catalyzer","html_url":"https://github.com/4Catalyzer","followers_url":"https://api.github.com/users/4Catalyzer/followers","following_url":"https://api.github.com/users/4Catalyzer/following{/other_user}","gists_url":"https://api.github.com/users/4Catalyzer/gists{/gist_id}","starred_url":"https://api.github.com/users/4Catalyzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4Catalyzer/subscriptions","organizations_url":"https://api.github.com/users/4Catalyzer/orgs","repos_url":"https://api.github.com/users/4Catalyzer/repos","events_url":"https://api.github.com/users/4Catalyzer/events{/privacy}","received_events_url":"https://api.github.com/users/4Catalyzer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/4Catalyzer/flask-resty","description":"Building blocks for REST APIs for Flask","fork":false,"url":"https://api.github.com/repos/4Catalyzer/flask-resty","forks_url":"https://api.github.com/repos/4Catalyzer/flask-resty/forks","keys_url":"https://api.github.com/repos/4Catalyzer/flask-resty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4Catalyzer/flask-resty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4Catalyzer/flask-resty/teams","hooks_url":"https://api.github.com/repos/4Catalyzer/flask-resty/hooks","issue_events_url":"https://api.github.com/repos/4Catalyzer/flask-resty/issues/events{/number}","events_url":"https://api.github.com/repos/4Catalyzer/flask-resty/events","assignees_url":"https://api.github.com/repos/4Catalyzer/flask-resty/assignees{/user}","branches_url":"https://api.github.com/repos/4Catalyzer/flask-resty/branches{/branch}","tags_url":"https://api.github.com/repos/4Catalyzer/flask-resty/tags","blobs_url":"https://api.github.com/repos/4Catalyzer/flask-resty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4Catalyzer/flask-resty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4Catalyzer/flask-resty/git/refs{/sha}","trees_url":"https://api.github.com/repos/4Catalyzer/flask-resty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4Catalyzer/flask-resty/statuses/{sha}","languages_url":"https://api.github.com/repos/4Catalyzer/flask-resty/languages","stargazers_url":"https://api.github.com/repos/4Catalyzer/flask-resty/stargazers","contributors_url":"https://api.github.com/repos/4Catalyzer/flask-resty/contributors","subscribers_url":"https://api.github.com/repos/4Catalyzer/flask-resty/subscribers","subscription_url":"https://api.github.com/repos/4Catalyzer/flask-resty/subscription","commits_url":"https://api.github.com/repos/4Catalyzer/flask-resty/commits{/sha}","git_commits_url":"https://api.github.com/repos/4Catalyzer/flask-resty/git/commits{/sha}","comments_url":"https://api.github.com/repos/4Catalyzer/flask-resty/comments{/number}","issue_comment_url":"https://api.github.com/repos/4Catalyzer/flask-resty/issues/comments{/number}","contents_url":"https://api.github.com/repos/4Catalyzer/flask-resty/contents/{+path}","compare_url":"https://api.github.com/repos/4Catalyzer/flask-resty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4Catalyzer/flask-resty/merges","archive_url":"https://api.github.com/repos/4Catalyzer/flask-resty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4Catalyzer/flask-resty/downloads","issues_url":"https://api.github.com/repos/4Catalyzer/flask-resty/issues{/number}","pulls_url":"https://api.github.com/repos/4Catalyzer/flask-resty/pulls{/number}","milestones_url":"https://api.github.com/repos/4Catalyzer/flask-resty/milestones{/number}","notifications_url":"https://api.github.com/repos/4Catalyzer/flask-resty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4Catalyzer/flask-resty/labels{/name}","releases_url":"https://api.github.com/repos/4Catalyzer/flask-resty/releases{/id}","created_at":"2015-07-24T23:29:49Z","updated_at":"2016-01-02T15:56:40Z","pushed_at":"2015-12-29T17:12:19Z","git_url":"git://github.com/4Catalyzer/flask-resty.git","ssh_url":"git@github.com:4Catalyzer/flask-resty.git","clone_url":"https://github.com/4Catalyzer/flask-resty.git","svn_url":"https://github.com/4Catalyzer/flask-resty","homepage":"","size":107,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/4Catalyzer/flask-resty/pulls/75"},"html":{"href":"https://github.com/4Catalyzer/flask-resty/pull/75"},"issue":{"href":"https://api.github.com/repos/4Catalyzer/flask-resty/issues/75"},"comments":{"href":"https://api.github.com/repos/4Catalyzer/flask-resty/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/4Catalyzer/flask-resty/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/4Catalyzer/flask-resty/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/4Catalyzer/flask-resty/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/4Catalyzer/flask-resty/statuses/0cfb3ee3cff53c49c3a53c407551f1492d090d90"}}}}