{"action":"created","issue":{"url":"https://api.github.com/repos/yvasiyarov/swagger/issues/105","repository_url":"https://api.github.com/repos/yvasiyarov/swagger","labels_url":"https://api.github.com/repos/yvasiyarov/swagger/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/yvasiyarov/swagger/issues/105/comments","events_url":"https://api.github.com/repos/yvasiyarov/swagger/issues/105/events","html_url":"https://github.com/yvasiyarov/swagger/issues/105","id":122203659,"number":105,"title":"the basePath {{.}} not parsed when loading in browser","user":{"login":"abel-von","id":7891772,"avatar_url":"https://avatars.githubusercontent.com/u/7891772?v=3","gravatar_id":"","url":"https://api.github.com/users/abel-von","html_url":"https://github.com/abel-von","followers_url":"https://api.github.com/users/abel-von/followers","following_url":"https://api.github.com/users/abel-von/following{/other_user}","gists_url":"https://api.github.com/users/abel-von/gists{/gist_id}","starred_url":"https://api.github.com/users/abel-von/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abel-von/subscriptions","organizations_url":"https://api.github.com/users/abel-von/orgs","repos_url":"https://api.github.com/users/abel-von/repos","events_url":"https://api.github.com/users/abel-von/events{/privacy}","received_events_url":"https://api.github.com/users/abel-von/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-15T06:33:24Z","updated_at":"2016-02-05T16:40:49Z","closed_at":null,"body":"When I use the newest version of yvasiyarov/swagger to generate docs.go.  i find there is a new key \"basePath\" and the value is \"{{.}}\". but unfortunately the {{.}} is not parsed to a right path when the browser do a request.  so the result is an error looks like \r\n\"Unable to read api 'v2' from path {{.}}/v2 (server returned undefined)\""},"comment":{"url":"https://api.github.com/repos/yvasiyarov/swagger/issues/comments/180432530","html_url":"https://github.com/yvasiyarov/swagger/issues/105#issuecomment-180432530","issue_url":"https://api.github.com/repos/yvasiyarov/swagger/issues/105","id":180432530,"user":{"login":"mathewkbejoy","id":13523151,"avatar_url":"https://avatars.githubusercontent.com/u/13523151?v=3","gravatar_id":"","url":"https://api.github.com/users/mathewkbejoy","html_url":"https://github.com/mathewkbejoy","followers_url":"https://api.github.com/users/mathewkbejoy/followers","following_url":"https://api.github.com/users/mathewkbejoy/following{/other_user}","gists_url":"https://api.github.com/users/mathewkbejoy/gists{/gist_id}","starred_url":"https://api.github.com/users/mathewkbejoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathewkbejoy/subscriptions","organizations_url":"https://api.github.com/users/mathewkbejoy/orgs","repos_url":"https://api.github.com/users/mathewkbejoy/repos","events_url":"https://api.github.com/users/mathewkbejoy/events{/privacy}","received_events_url":"https://api.github.com/users/mathewkbejoy/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T16:40:49Z","updated_at":"2016-02-05T16:40:49Z","body":"is there a way for resourceListingJson to have a host rather than basepath \r\nvar resourceListingJson = `{\r\n    \"apiVersion\": \"\",\r\n    \"swaggerVersion\": \"1.2\",\r\n    \"host\": \"http://localhost:8086\",\r\n    \"apis\": [\r\n        {\r\n            \"path\": \"/dateTime\",\r\n            \"description\": \"Gets current timestamp, date and time\"\r\n        },\r\n        {\r\n            \"path\": \"/phoneNumberDetail\",\r\n            \"description\": \"Tells you where the call is coming from\"\r\n        }\r\n    ],\r\n    \"info\": {\r\n        \"title\": \"Burst\",\r\n        \"description\": \"This api currently contains 2 end points. One to get current time and another to get the detail of a phone number\",\r\n        \"contact\": \"bmathew@redventures.com\"\r\n    }\r\n}`"}}