I'm using static documentation with swagger-ui.
Having dist folder from swagger-ui, I have added folder "/docs" and changed in index.html url: "/docs/index.json"
.
I'm running it via python -m SimpleHTTPServer
on port 8000 by default.
Without specifying 'basePath' as full url in resource listing swagger tries to load http://localhost/docs/mobile/version.json
without respecting port.
Setting basePath to http://localhost:8000/docs
helps, but API documentation could be running on any port.
Because of this setting relative paths is much more preferred solution.