{"action":"closed","number":84,"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-explorer/pulls/84","id":27098485,"html_url":"https://github.com/strongloop/loopback-explorer/pull/84","diff_url":"https://github.com/strongloop/loopback-explorer/pull/84.diff","patch_url":"https://github.com/strongloop/loopback-explorer/pull/84.patch","issue_url":"https://api.github.com/repos/strongloop/loopback-explorer/issues/84","number":84,"state":"closed","locked":false,"title":"Prevent double slash in the resource URLs","user":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"body":"SwaggerUI builds resource URL by concatenating basePath + resourcePath.\r\nSince the resource paths are always startign with a slash, if the\r\nbasePath ends with a slash too, an incorrect URL is produced.\r\nThis was typically happenning when `restApiRoot` was '/'.\r\n\r\nThis commit modifies the code producing the base path to remove\r\nthe trailing slash.\r\n\r\nFix #48.\r\n\r\n/to @raymondfeng or @STRML please review\r\n/cc @marcopeise","created_at":"2015-01-09T13:04:06Z","updated_at":"2015-01-09T13:47:33Z","closed_at":"2015-01-09T13:47:33Z","merged_at":"2015-01-09T13:47:33Z","merge_commit_sha":"920c95751d4d1aee87c7d2d776427c3d8f8b6f8f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/strongloop/loopback-explorer/pulls/84/commits","review_comments_url":"https://api.github.com/repos/strongloop/loopback-explorer/pulls/84/comments","review_comment_url":"https://api.github.com/repos/strongloop/loopback-explorer/pulls/comments/{number}","comments_url":"https://api.github.com/repos/strongloop/loopback-explorer/issues/84/comments","statuses_url":"https://api.github.com/repos/strongloop/loopback-explorer/statuses/c6693f8725e98071c77313b27a5dcd0710bc1978","head":{"label":"strongloop:fix/api-root-at-root","ref":"fix/api-root-at-root","sha":"c6693f8725e98071c77313b27a5dcd0710bc1978","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":14149371,"name":"loopback-explorer","full_name":"strongloop/loopback-explorer","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/loopback-explorer","description":"Browse and test your LoopBack app's APIs","fork":false,"url":"https://api.github.com/repos/strongloop/loopback-explorer","forks_url":"https://api.github.com/repos/strongloop/loopback-explorer/forks","keys_url":"https://api.github.com/repos/strongloop/loopback-explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/loopback-explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/loopback-explorer/teams","hooks_url":"https://api.github.com/repos/strongloop/loopback-explorer/hooks","issue_events_url":"https://api.github.com/repos/strongloop/loopback-explorer/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/loopback-explorer/events","assignees_url":"https://api.github.com/repos/strongloop/loopback-explorer/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/loopback-explorer/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/loopback-explorer/tags","blobs_url":"https://api.github.com/repos/strongloop/loopback-explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/loopback-explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/loopback-explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/loopback-explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/loopback-explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/loopback-explorer/languages","stargazers_url":"https://api.github.com/repos/strongloop/loopback-explorer/stargazers","contributors_url":"https://api.github.com/repos/strongloop/loopback-explorer/contributors","subscribers_url":"https://api.github.com/repos/strongloop/loopback-explorer/subscribers","subscription_url":"https://api.github.com/repos/strongloop/loopback-explorer/subscription","commits_url":"https://api.github.com/repos/strongloop/loopback-explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/loopback-explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/loopback-explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/loopback-explorer/issues/comments/{number}","contents_url":"https://api.github.com/repos/strongloop/loopback-explorer/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/loopback-explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/loopback-explorer/merges","archive_url":"https://api.github.com/repos/strongloop/loopback-explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/loopback-explorer/downloads","issues_url":"https://api.github.com/repos/strongloop/loopback-explorer/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/loopback-explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/loopback-explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/loopback-explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/loopback-explorer/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/loopback-explorer/releases{/id}","created_at":"2013-11-05T17:59:05Z","updated_at":"2015-01-08T01:57:38Z","pushed_at":"2015-01-09T13:47:33Z","git_url":"git://github.com/strongloop/loopback-explorer.git","ssh_url":"git@github.com:strongloop/loopback-explorer.git","clone_url":"https://github.com/strongloop/loopback-explorer.git","svn_url":"https://github.com/strongloop/loopback-explorer","homepage":null,"size":1477,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":10,"forks":17,"open_issues":10,"watchers":10,"default_branch":"master"}},"base":{"label":"strongloop:master","ref":"master","sha":"409dfdc2bbf484a2395a7de4b98cf96ddee7f8c1","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":14149371,"name":"loopback-explorer","full_name":"strongloop/loopback-explorer","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/loopback-explorer","description":"Browse and test your LoopBack app's APIs","fork":false,"url":"https://api.github.com/repos/strongloop/loopback-explorer","forks_url":"https://api.github.com/repos/strongloop/loopback-explorer/forks","keys_url":"https://api.github.com/repos/strongloop/loopback-explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/loopback-explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/loopback-explorer/teams","hooks_url":"https://api.github.com/repos/strongloop/loopback-explorer/hooks","issue_events_url":"https://api.github.com/repos/strongloop/loopback-explorer/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/loopback-explorer/events","assignees_url":"https://api.github.com/repos/strongloop/loopback-explorer/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/loopback-explorer/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/loopback-explorer/tags","blobs_url":"https://api.github.com/repos/strongloop/loopback-explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/loopback-explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/loopback-explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/loopback-explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/loopback-explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/loopback-explorer/languages","stargazers_url":"https://api.github.com/repos/strongloop/loopback-explorer/stargazers","contributors_url":"https://api.github.com/repos/strongloop/loopback-explorer/contributors","subscribers_url":"https://api.github.com/repos/strongloop/loopback-explorer/subscribers","subscription_url":"https://api.github.com/repos/strongloop/loopback-explorer/subscription","commits_url":"https://api.github.com/repos/strongloop/loopback-explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/loopback-explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/loopback-explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/loopback-explorer/issues/comments/{number}","contents_url":"https://api.github.com/repos/strongloop/loopback-explorer/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/loopback-explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/loopback-explorer/merges","archive_url":"https://api.github.com/repos/strongloop/loopback-explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/loopback-explorer/downloads","issues_url":"https://api.github.com/repos/strongloop/loopback-explorer/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/loopback-explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/loopback-explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/loopback-explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/loopback-explorer/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/loopback-explorer/releases{/id}","created_at":"2013-11-05T17:59:05Z","updated_at":"2015-01-08T01:57:38Z","pushed_at":"2015-01-09T13:47:33Z","git_url":"git://github.com/strongloop/loopback-explorer.git","ssh_url":"git@github.com:strongloop/loopback-explorer.git","clone_url":"https://github.com/strongloop/loopback-explorer.git","svn_url":"https://github.com/strongloop/loopback-explorer","homepage":null,"size":1477,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":10,"forks":17,"open_issues":10,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongloop/loopback-explorer/pulls/84"},"html":{"href":"https://github.com/strongloop/loopback-explorer/pull/84"},"issue":{"href":"https://api.github.com/repos/strongloop/loopback-explorer/issues/84"},"comments":{"href":"https://api.github.com/repos/strongloop/loopback-explorer/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/strongloop/loopback-explorer/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/strongloop/loopback-explorer/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/strongloop/loopback-explorer/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/strongloop/loopback-explorer/statuses/c6693f8725e98071c77313b27a5dcd0710bc1978"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":27,"deletions":1,"changed_files":2}}