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地址,我该如何通过一次命令拉取所有的文件到项目内,支持多地址码? #154

Open
ycrqwq opened this issue Apr 22, 2024 · 3 comments

Comments

@ycrqwq
Copy link

ycrqwq commented Apr 22, 2024

后端多个swagger 地址
eg1: http:123.com/user.swagger.json eg2: http:123.com/product.swagger.json

项目内schemaPath 为string,想问一下作者我该如何通过多个地址拉取到项目内?

@fengluoX
Copy link
Contributor

可以的,通过多次调用generateService方法就可以,写两个不同的目录就可以
image

@fengluoX
Copy link
Contributor

参考 #87

@ycrqwq
Copy link
Author

ycrqwq commented Apr 28, 2024

参考 #87

感谢,我最初是定义了配置文件,定义多个swagger地址,循环调用了方法,看来我们是一致的,后期打算编写命令行工具,来交互式生成

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

No branches or pull requests

2 participants