如何在 .net 核心中使用 Swagger Codegen [英] How to use Swagger Codegen with .net core

查看:43
本文介绍了如何在 .net 核心中使用 Swagger Codegen的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够使用 Swashbuckle 将 Swagger UI 集成到我的 Web api 中.我还想探索 swagger 代码生成功能.有人可以帮忙 - 我如何将 swagger codegen 集成到我的 web api 项目中?还是需要下载什么工具?我希望能够托管代码生成器并传递 json/raml 表单规范以在 .net core 中生成客户端.

I am able to integrate the Swagge UI in my web api using Swashbuckle. I also want to explore the swagger codegen feature. Can somebody help in - how I can integrate swagger codegen into my web api project? Or do I need to download any tool? I want to be able it to host the codegen and pass the json/raml form specs to generate client in .net core.

我在上面找不到足够的文档.

I am not able to find enough docs on above.

我想知道如何在我的 WEBAPI 中托管代码生成器.

谢谢!

推荐答案

现在,您可以使用 Nswag.有几个代码生成器实用程序 - UI、控制台、msbuild.

Now, you can use Nswag. There are several code generator utilities - UI, Console, msbuild.

这篇关于如何在 .net 核心中使用 Swagger Codegen的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆