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
Describe the bug
Setting OAS_URL_PREFIX to anything other than /docs causes redoc and swagger to fail, because the html looks for /docs/openapi.json (and swagger-config for swagger)
Expected behavior
Swagger UI functions at hostname/swagger
Environment (please complete the following information):
OS: Windows
Browser Chrome
Version 21.9.3 (really pip install -e /main from this repo)
Additional context
This is fixed in a branch in my fork. Let me know if you want a PR. I also fixed / enhanced with the ability to use the root as the openapi endpoint. Tested with redoc and swagger with the default of no prefix set (so default of /docs) and url prefixes ['/docs', '/swagger', '']. I only tested with the base of my installed sanic, which is 21.9.1 rocknet@ec1f277
The text was updated successfully, but these errors were encountered:
Describe the bug
Setting OAS_URL_PREFIX to anything other than /docs causes redoc and swagger to fail, because the html looks for /docs/openapi.json (and swagger-config for swagger)
Screenshots
![image](https://user-images.githubusercontent.com/1266404/144877126-f473deb1-7fed-4426-87d1-3ff22c732672.png)
![image](https://user-images.githubusercontent.com/1266404/144877158-d430ca60-b65b-4908-8bb7-6113f46694c2.png)
To Reproduce
Initialize Sanic-ext like this:
Expected behavior
Swagger UI functions at hostname/swagger
Environment (please complete the following information):
Additional context
This is fixed in a branch in my fork. Let me know if you want a PR. I also fixed / enhanced with the ability to use the root as the openapi endpoint. Tested with redoc and swagger with the default of no prefix set (so default of /docs) and url prefixes ['/docs', '/swagger', '']. I only tested with the base of my installed sanic, which is 21.9.1
rocknet@ec1f277
The text was updated successfully, but these errors were encountered: