{"action":"closed","number":37,"pull_request":{"url":"https://api.github.com/repos/andela/ah-backend-thor/pulls/37","id":227683512,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3NjgzNTEy","html_url":"https://github.com/andela/ah-backend-thor/pull/37","diff_url":"https://github.com/andela/ah-backend-thor/pull/37.diff","patch_url":"https://github.com/andela/ah-backend-thor/pull/37.patch","issue_url":"https://api.github.com/repos/andela/ah-backend-thor/issues/37","number":37,"state":"closed","locked":false,"title":"#161652871 Ch change swagger generator from djangorest_swagger to drf-yasg","user":{"login":"joshNic","id":12236213,"node_id":"MDQ6VXNlcjEyMjM2MjEz","avatar_url":"https://avatars1.githubusercontent.com/u/12236213?v=4","gravatar_id":"","url":"https://api.github.com/users/joshNic","html_url":"https://github.com/joshNic","followers_url":"https://api.github.com/users/joshNic/followers","following_url":"https://api.github.com/users/joshNic/following{/other_user}","gists_url":"https://api.github.com/users/joshNic/gists{/gist_id}","starred_url":"https://api.github.com/users/joshNic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshNic/subscriptions","organizations_url":"https://api.github.com/users/joshNic/orgs","repos_url":"https://api.github.com/users/joshNic/repos","events_url":"https://api.github.com/users/joshNic/events{/privacy}","received_events_url":"https://api.github.com/users/joshNic/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nChanges swagger generator from django-rest-swagger to drf-yasg\r\n#### Description of Task to be completed?\r\n- install drf-yasg with `pip install - U drf-yasg[validation]` which will install drf-yasg and enable to use the built-in validation mechanisms.\r\n- Create and generate a schema view.\r\n- Include the url paths\r\n#### How should this be manually tested?\r\n- run python manage.py runserver\r\n- vist 127.0.0.1:8000/documentation/\r\n- This should present you with the list of endpoints\r\n#### Any background context you want to provide?\r\n- The current generator also does not have full support for nested Serializers and Schemas which are what the current codebase uses\r\n- The current generator can not bundle the latest version of swagger-ui and redoc for viewing the generated documentation\r\n- drf-yasg’s generated Swagger schema can be automatically validated by swagger-spec-validator or flex\r\n#### What are the relevant pivotal tracker stories?\r\n#161652871","created_at":"2018-11-01T16:44:15Z","updated_at":"2018-11-02T06:04:24Z","closed_at":"2018-11-02T06:04:24Z","merged_at":"2018-11-02T06:04:24Z","merge_commit_sha":"736797bddb940d54310ae0f135e642b92e106142","assignee":null,"assignees":[],"requested_reviewers":[{"login":"emukungu","id":9901086,"node_id":"MDQ6VXNlcjk5MDEwODY=","avatar_url":"https://avatars3.githubusercontent.com/u/9901086?v=4","gravatar_id":"","url":"https://api.github.com/users/emukungu","html_url":"https://github.com/emukungu","followers_url":"https://api.github.com/users/emukungu/followers","following_url":"https://api.github.com/users/emukungu/following{/other_user}","gists_url":"https://api.github.com/users/emukungu/gists{/gist_id}","starred_url":"https://api.github.com/users/emukungu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emukungu/subscriptions","organizations_url":"https://api.github.com/users/emukungu/orgs","repos_url":"https://api.github.com/users/emukungu/repos","events_url":"https://api.github.com/users/emukungu/events{/privacy}","received_events_url":"https://api.github.com/users/emukungu/received_events","type":"User","site_admin":false},{"login":"malep2007","id":17592399,"node_id":"MDQ6VXNlcjE3NTkyMzk5","avatar_url":"https://avatars2.githubusercontent.com/u/17592399?v=4","gravatar_id":"","url":"https://api.github.com/users/malep2007","html_url":"https://github.com/malep2007","followers_url":"https://api.github.com/users/malep2007/followers","following_url":"https://api.github.com/users/malep2007/following{/other_user}","gists_url":"https://api.github.com/users/malep2007/gists{/gist_id}","starred_url":"https://api.github.com/users/malep2007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malep2007/subscriptions","organizations_url":"https://api.github.com/users/malep2007/orgs","repos_url":"https://api.github.com/users/malep2007/repos","events_url":"https://api.github.com/users/malep2007/events{/privacy}","received_events_url":"https://api.github.com/users/malep2007/received_events","type":"User","site_admin":false},{"login":"cdvx","id":19260086,"node_id":"MDQ6VXNlcjE5MjYwMDg2","avatar_url":"https://avatars0.githubusercontent.com/u/19260086?v=4","gravatar_id":"","url":"https://api.github.com/users/cdvx","html_url":"https://github.com/cdvx","followers_url":"https://api.github.com/users/cdvx/followers","following_url":"https://api.github.com/users/cdvx/following{/other_user}","gists_url":"https://api.github.com/users/cdvx/gists{/gist_id}","starred_url":"https://api.github.com/users/cdvx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdvx/subscriptions","organizations_url":"https://api.github.com/users/cdvx/orgs","repos_url":"https://api.github.com/users/cdvx/repos","events_url":"https://api.github.com/users/cdvx/events{/privacy}","received_events_url":"https://api.github.com/users/cdvx/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/ah-backend-thor/pulls/37/commits","review_comments_url":"https://api.github.com/repos/andela/ah-backend-thor/pulls/37/comments","review_comment_url":"https://api.github.com/repos/andela/ah-backend-thor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/ah-backend-thor/issues/37/comments","statuses_url":"https://api.github.com/repos/andela/ah-backend-thor/statuses/c4e68224bd4c8094ed12c116fb13f11084dc95c1","head":{"label":"andela:ch-change-from-djangorest-swagger-to-drf-yasg-161652871","ref":"ch-change-from-djangorest-swagger-to-drf-yasg-161652871","sha":"c4e68224bd4c8094ed12c116fb13f11084dc95c1","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":153422407,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM0MjI0MDc=","name":"ah-backend-thor","full_name":"andela/ah-backend-thor","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/ah-backend-thor","description":"Training Repository for building a backend to support a blogging application with Python/Django","fork":false,"url":"https://api.github.com/repos/andela/ah-backend-thor","forks_url":"https://api.github.com/repos/andela/ah-backend-thor/forks","keys_url":"https://api.github.com/repos/andela/ah-backend-thor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-backend-thor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-backend-thor/teams","hooks_url":"https://api.github.com/repos/andela/ah-backend-thor/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-backend-thor/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-backend-thor/events","assignees_url":"https://api.github.com/repos/andela/ah-backend-thor/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-backend-thor/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-backend-thor/tags","blobs_url":"https://api.github.com/repos/andela/ah-backend-thor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-backend-thor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-backend-thor/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-backend-thor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-backend-thor/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-backend-thor/languages","stargazers_url":"https://api.github.com/repos/andela/ah-backend-thor/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-backend-thor/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-backend-thor/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-backend-thor/subscription","commits_url":"https://api.github.com/repos/andela/ah-backend-thor/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-backend-thor/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-backend-thor/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-backend-thor/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-backend-thor/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-backend-thor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-backend-thor/merges","archive_url":"https://api.github.com/repos/andela/ah-backend-thor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-backend-thor/downloads","issues_url":"https://api.github.com/repos/andela/ah-backend-thor/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-backend-thor/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-backend-thor/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-backend-thor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-backend-thor/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-backend-thor/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-backend-thor/deployments","created_at":"2018-10-17T08:28:27Z","updated_at":"2018-11-02T05:57:10Z","pushed_at":"2018-11-02T06:04:24Z","git_url":"git://github.com/andela/ah-backend-thor.git","ssh_url":"git@github.com:andela/ah-backend-thor.git","clone_url":"https://github.com/andela/ah-backend-thor.git","svn_url":"https://github.com/andela/ah-backend-thor","homepage":"https://ah-backend-thor.herokuapp.com","size":110,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"763c488780f166e18f13f5bd3777ab9b2453a13b","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":153422407,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM0MjI0MDc=","name":"ah-backend-thor","full_name":"andela/ah-backend-thor","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/ah-backend-thor","description":"Training Repository for building a backend to support a blogging application with Python/Django","fork":false,"url":"https://api.github.com/repos/andela/ah-backend-thor","forks_url":"https://api.github.com/repos/andela/ah-backend-thor/forks","keys_url":"https://api.github.com/repos/andela/ah-backend-thor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-backend-thor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-backend-thor/teams","hooks_url":"https://api.github.com/repos/andela/ah-backend-thor/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-backend-thor/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-backend-thor/events","assignees_url":"https://api.github.com/repos/andela/ah-backend-thor/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-backend-thor/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-backend-thor/tags","blobs_url":"https://api.github.com/repos/andela/ah-backend-thor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-backend-thor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-backend-thor/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-backend-thor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-backend-thor/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-backend-thor/languages","stargazers_url":"https://api.github.com/repos/andela/ah-backend-thor/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-backend-thor/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-backend-thor/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-backend-thor/subscription","commits_url":"https://api.github.com/repos/andela/ah-backend-thor/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-backend-thor/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-backend-thor/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-backend-thor/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-backend-thor/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-backend-thor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-backend-thor/merges","archive_url":"https://api.github.com/repos/andela/ah-backend-thor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-backend-thor/downloads","issues_url":"https://api.github.com/repos/andela/ah-backend-thor/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-backend-thor/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-backend-thor/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-backend-thor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-backend-thor/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-backend-thor/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-backend-thor/deployments","created_at":"2018-10-17T08:28:27Z","updated_at":"2018-11-02T05:57:10Z","pushed_at":"2018-11-02T06:04:24Z","git_url":"git://github.com/andela/ah-backend-thor.git","ssh_url":"git@github.com:andela/ah-backend-thor.git","clone_url":"https://github.com/andela/ah-backend-thor.git","svn_url":"https://github.com/andela/ah-backend-thor","homepage":"https://ah-backend-thor.herokuapp.com","size":110,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/ah-backend-thor/pulls/37"},"html":{"href":"https://github.com/andela/ah-backend-thor/pull/37"},"issue":{"href":"https://api.github.com/repos/andela/ah-backend-thor/issues/37"},"comments":{"href":"https://api.github.com/repos/andela/ah-backend-thor/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/ah-backend-thor/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/ah-backend-thor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/ah-backend-thor/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/andela/ah-backend-thor/statuses/c4e68224bd4c8094ed12c116fb13f11084dc95c1"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"malep2007","id":17592399,"node_id":"MDQ6VXNlcjE3NTkyMzk5","avatar_url":"https://avatars2.githubusercontent.com/u/17592399?v=4","gravatar_id":"","url":"https://api.github.com/users/malep2007","html_url":"https://github.com/malep2007","followers_url":"https://api.github.com/users/malep2007/followers","following_url":"https://api.github.com/users/malep2007/following{/other_user}","gists_url":"https://api.github.com/users/malep2007/gists{/gist_id}","starred_url":"https://api.github.com/users/malep2007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malep2007/subscriptions","organizations_url":"https://api.github.com/users/malep2007/orgs","repos_url":"https://api.github.com/users/malep2007/repos","events_url":"https://api.github.com/users/malep2007/events{/privacy}","received_events_url":"https://api.github.com/users/malep2007/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":50,"deletions":7,"changed_files":3}}
{"actor":{"display_login":"malep2007"}}