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

集成NSwag通过swagger快速生成api请求代码 #10686

Closed
LGinC opened this issue Nov 19, 2021 · 0 comments
Closed

集成NSwag通过swagger快速生成api请求代码 #10686

LGinC opened this issue Nov 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@LGinC
Copy link

LGinC commented Nov 19, 2021

这个特性解决了什么问题?

通过swagger.json快速生成请求后端api的请求代码和 request response的dto class或interface, 方便前后端对接

这个 API 长什么样?

后端api
GET http://xxx/api/myApp/GetList?all=true

生成taro开箱即用的客户端代码

myAppService.GetList(new xxDto{ all=true })
.subscibe(res =>  { console.log(res.Items) })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants