Visual studio code整合Swagger-ui简易方法

一、首先咱们须要安装swagger-ui依赖包 在终端控制台输入命令:dotnet add YourProjectName.csproj package Swashbuckle.AspNetCorejson 二、添加配置和Swagger中间件 在Startup.cs文件的ConfigureServices方法内添加代码以下:visual-studio-code // Register the Sw
相关文章
相关标签/搜索