You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If my application is deployed under a path, i.e. http://foo.com/prefix/swagger/, then the swagger definitions all still return absolute paths from foo.com, not foo.com/prefix. APISpec should respect the SCRIPT_NAME wsgi environ if it's set and prepend it to the paths.
The text was updated successfully, but these errors were encountered:
The tricky part here is that the APIspec definition is not built during a request, so it can't really take into account the environment.
My use case is trying to deploy a serverless flask with APIspec - https://github.com/revmischa/serverless-flask
AWS deploys your endpoint to some path, like /dev/foo or /prod/foo. The application is not mounted at the root of the domain, so the endpoints need to be adjusted to match the root. Not sure how to do this unless the APIspec is built during a request.
If my application is deployed under a path, i.e. http://foo.com/prefix/swagger/, then the swagger definitions all still return absolute paths from foo.com, not foo.com/prefix. APISpec should respect the SCRIPT_NAME wsgi environ if it's set and prepend it to the paths.
The text was updated successfully, but these errors were encountered: