{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/979","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/979/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/979/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/979/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/979","id":59447042,"number":979,"title":"Incorrect api path","user":{"login":"tapan-d-thakkar","id":4955666,"avatar_url":"https://avatars.githubusercontent.com/u/4955666?v=3","gravatar_id":"","url":"https://api.github.com/users/tapan-d-thakkar","html_url":"https://github.com/tapan-d-thakkar","followers_url":"https://api.github.com/users/tapan-d-thakkar/followers","following_url":"https://api.github.com/users/tapan-d-thakkar/following{/other_user}","gists_url":"https://api.github.com/users/tapan-d-thakkar/gists{/gist_id}","starred_url":"https://api.github.com/users/tapan-d-thakkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tapan-d-thakkar/subscriptions","organizations_url":"https://api.github.com/users/tapan-d-thakkar/orgs","repos_url":"https://api.github.com/users/tapan-d-thakkar/repos","events_url":"https://api.github.com/users/tapan-d-thakkar/events{/privacy}","received_events_url":"https://api.github.com/users/tapan-d-thakkar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-03-02T07:22:34Z","updated_at":"2015-03-03T13:36:25Z","closed_at":null,"body":"Hi, I have downloaded swagger from https://github.com/swagger-api/swagger-ui. I am able to see swagger API page successfully. But when I try to execute any API, its generating incorrect URI.\r\n\r\nfor eg: my app is running on http://localhost:8080/app, swagger api docs url is http://localhost:8080/app/api-docs.\r\n\r\nI have one API to fetch client details as http://localhost:8080/app/client/{id}, but when i execute that API using swagger it generates url as http://localhost:8080/app/app/client/{id}.\r\n\r\nI am not sure why its adding /app twice, i tried to debug code, in this method of swagger-client.js\r\nSwaggerOperation.prototype.urlify = function(args), value of this.resource.basePath is coming like http://localhost:8080/app/app/ and it appends client/{id} to it which is wrong.\r\n\r\nLet me know if i have to make any changes for this.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/76945869","html_url":"https://github.com/swagger-api/swagger-ui/issues/979#issuecomment-76945869","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/979","id":76945869,"user":{"login":"webron","id":241629,"avatar_url":"https://avatars.githubusercontent.com/u/241629?v=3","gravatar_id":"","url":"https://api.github.com/users/webron","html_url":"https://github.com/webron","followers_url":"https://api.github.com/users/webron/followers","following_url":"https://api.github.com/users/webron/following{/other_user}","gists_url":"https://api.github.com/users/webron/gists{/gist_id}","starred_url":"https://api.github.com/users/webron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webron/subscriptions","organizations_url":"https://api.github.com/users/webron/orgs","repos_url":"https://api.github.com/users/webron/repos","events_url":"https://api.github.com/users/webron/events{/privacy}","received_events_url":"https://api.github.com/users/webron/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T13:36:25Z","updated_at":"2015-03-03T13:36:25Z","body":"@tapan-d-thakkar - if you're getting a response from .../api-docs, then you didn't update your dependencies properly. Swagger 2.0 doesn't use the /api-docs structure anymore.\r\n\r\nRun `mvn tree:list` to see which dependencies you actually pull in."}}