Skip to content
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 #106

Open
zhengsw91 opened this issue Aug 11, 2020 · 3 comments
Open

无法同步swagger #106

zhengsw91 opened this issue Aug 11, 2020 · 3 comments

Comments

@zhengsw91
Copy link

使用swagger2.0同步,为空内容
使用swagger3.0同步直接报错
image

@mylxsw
Copy link
Owner

mylxsw commented Aug 11, 2020

源文档地址返回的必须是 Swagger 文档,格式为 json 或者 yaml。另外,同步失败后看看日志报啥错呢,日志在 storage/logs/laravel.log 文件

@zhengsw91
Copy link
Author

zhengsw91 commented Aug 11, 2020

啊,还是有问题。现在swagger的页面能同步过来了。但是测试接口的时候有异常。Curl里的内容不一致

@mylxsw
Copy link
Owner

mylxsw commented Aug 13, 2020

具体哪里不一样呢,贴出来看看呢

另外调用接口的时候,注意跨域问题,在调用的接口服务端需要添加跨域相关的响应头

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants