{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1124","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1124/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1124/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1124/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/1124","id":66462798,"number":1124,"title":"basePath not reflected in endpoint \"operations\" section","user":{"login":"Caligatio","id":2017685,"avatar_url":"https://avatars.githubusercontent.com/u/2017685?v=3","gravatar_id":"","url":"https://api.github.com/users/Caligatio","html_url":"https://github.com/Caligatio","followers_url":"https://api.github.com/users/Caligatio/followers","following_url":"https://api.github.com/users/Caligatio/following{/other_user}","gists_url":"https://api.github.com/users/Caligatio/gists{/gist_id}","starred_url":"https://api.github.com/users/Caligatio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Caligatio/subscriptions","organizations_url":"https://api.github.com/users/Caligatio/orgs","repos_url":"https://api.github.com/users/Caligatio/repos","events_url":"https://api.github.com/users/Caligatio/events{/privacy}","received_events_url":"https://api.github.com/users/Caligatio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/Regression","name":"Regression","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":{"login":"mohsen1","id":543633,"avatar_url":"https://avatars.githubusercontent.com/u/543633?v=3","gravatar_id":"","url":"https://api.github.com/users/mohsen1","html_url":"https://github.com/mohsen1","followers_url":"https://api.github.com/users/mohsen1/followers","following_url":"https://api.github.com/users/mohsen1/following{/other_user}","gists_url":"https://api.github.com/users/mohsen1/gists{/gist_id}","starred_url":"https://api.github.com/users/mohsen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohsen1/subscriptions","organizations_url":"https://api.github.com/users/mohsen1/orgs","repos_url":"https://api.github.com/users/mohsen1/repos","events_url":"https://api.github.com/users/mohsen1/events{/privacy}","received_events_url":"https://api.github.com/users/mohsen1/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-04-05T17:34:59Z","updated_at":"2015-04-15T21:57:41Z","closed_at":"2015-04-15T21:57:41Z","body":"I currently have Swagger served up out of a subpath of my application and Swagger-UI works fine other than the fact that the \"operations\" section only reflects the Swagger Spec Path and not the full path.\r\n\r\nExample:\r\n\r\n```json\r\n{\"apiVersion\":\"0.1\",\"swaggerVersion\":\"1.2\",\"basePath\":\"http://localhost:3000/api\",\"resourcePath\":\"/helloworld\",\"apis\":[{\"path\":\"/helloworld\",\"operations\":[{\"description\":\"simple GET example\",\"summary\":\"returns {\\\"hello\\\":\\\"world\\\"}\",\"paramters\":[],\"nickname\":\"helloworld\",\"method\":\"GET\",\"type\":\"void\"}]}],\"models\":{}}\r\n```\r\n\r\nSwagger-UI correctly hits the endpoint at http://localhost:3000/api/helloworld but the page shows the [operation hitting \"/helloworld\"](https://github.com/swagger-api/swagger-ui/blob/master/src/main/template/operation.handlebars#L10) which is somewhat misleading (initial glance then makes it seem like the endpoint is actually http://localhost:3000/helloworld)\r\n\r\nWould it be possible to still group endpoints with similar paths but to also tack on the relative basePath?"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/93580563","html_url":"https://github.com/swagger-api/swagger-ui/issues/1124#issuecomment-93580563","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1124","id":93580563,"user":{"login":"mohsen1","id":543633,"avatar_url":"https://avatars.githubusercontent.com/u/543633?v=3","gravatar_id":"","url":"https://api.github.com/users/mohsen1","html_url":"https://github.com/mohsen1","followers_url":"https://api.github.com/users/mohsen1/followers","following_url":"https://api.github.com/users/mohsen1/following{/other_user}","gists_url":"https://api.github.com/users/mohsen1/gists{/gist_id}","starred_url":"https://api.github.com/users/mohsen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohsen1/subscriptions","organizations_url":"https://api.github.com/users/mohsen1/orgs","repos_url":"https://api.github.com/users/mohsen1/repos","events_url":"https://api.github.com/users/mohsen1/events{/privacy}","received_events_url":"https://api.github.com/users/mohsen1/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T21:57:41Z","updated_at":"2015-04-15T21:57:41Z","body":"Duplicate of #1139 "}}