-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swagger v2 和 v3版本的内置数据请求接口差异 #814
Comments
我也遇到这个问题了,我是通过istio做网关路由过来的,v3会把路由前缀干掉,v2就可以正常访问 |
你解决了嘛 |
没有,服务器部署的直接禁用doc.html了,只本地调试的时候打开 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
前提,我的项目是需要使用内网穿透来访问的,然后Nginx监听了http://www.xxx.vip域名,同时localtion匹配了 /xxxApi/ 路径来做转发。
但是由于swagger v2和v3版本的区别,我发现在页面打开之后,在进行接口数据的请求的时候,v2版本会保留我配置的api,但是v3版本不会,如下↓
v2 版本
v3 版本
由于v3版本去掉了我的/xxxApi/的路径,所以导致我的Nginx无法进行路径匹配从而转发,那么接口请求数据就会报错404,导致页面无法渲染出来,就想问下有没有谁解决了这个问题的
The text was updated successfully, but these errors were encountered: