![]() |
VOOZH | about |
dotnet add package MicroCloud.Swagger --version 8.0.3.1
NuGet\Install-Package MicroCloud.Swagger -Version 8.0.3.1
<PackageReference Include="MicroCloud.Swagger" Version="8.0.3.1" />
<PackageVersion Include="MicroCloud.Swagger" Version="8.0.3.1" />Directory.Packages.props
<PackageReference Include="MicroCloud.Swagger" />Project file
paket add MicroCloud.Swagger --version 8.0.3.1
#r "nuget: MicroCloud.Swagger, 8.0.3.1"
#:package MicroCloud.Swagger@8.0.3.1
#addin nuget:?package=MicroCloud.Swagger&version=8.0.3.1Install as a Cake Addin
#tool nuget:?package=MicroCloud.Swagger&version=8.0.3.1Install as a Cake Tool
集成 Swagger API 文档生成组件,方便前后端分离的开发模式中前后端开发人员的数据接口对接工作。基于Swagger的工作原理,API的输入输出都需使用强类型的数据类型,Swagger才能发挥更好的作用,而MicroCloud框架通过AutoMapper的ProjectTo对业务实体到输出DTOIOutputDto提供了自动映射功能,能有效减轻后端开发中数据对象属性映射的工作量。
可按照如下配置方式使用:
MicroCloud.Swagger 程序集Install-Package MicroCloud.Swagger
appsettings.json 中 的 MicroCloud 节点下添加如下配置节点{
"Swagger": {
"UI": "knife4j", //界面样式:knife4j、swagger(默认)。
"IsHideSchemas": true, //隐藏架构
"MiniProfiler": true, //启用轻量级工具分析
// 注释文档
"XmlPattern": "microcloud*.xml",
//分组集合
"Groups": [
{
"Name": "api", //名称
"Title": "框架API", //标题
"Description": "框架API", //描述
"Url": "", //Url
"Visible": true //是否可见
},
{
"Name": "buss", //名称
"Title": "业务API", //标题
"Description": "业务API", //描述
"Url": "/swagger/buss/swagger.json", //Url
"Visible": false //是否可见
}
],
"Enabled": true //是否启用
}
}
Enabled: false| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 8.0.3.1 | 275 | 9/9/2024 |
| 8.0.2.9 | 250 | 9/5/2024 |
| 8.0.2.8 | 243 | 8/31/2024 |
| 8.0.2.7 | 237 | 8/31/2024 |
| 8.0.2.6 | 268 | 8/21/2024 |
| 8.0.2.5 | 263 | 8/21/2024 |
| 8.0.2.4 | 248 | 8/12/2024 |
| 8.0.2.3 | 245 | 8/8/2024 |
| 8.0.2.2 | 246 | 7/14/2024 |
| 8.0.2.1 | 224 | 6/7/2024 |
| 8.0.1.9 | 233 | 6/6/2024 |
| 8.0.1.8 | 225 | 6/6/2024 |
| 8.0.1.7 | 245 | 5/15/2024 |
| 8.0.1.6 | 227 | 5/15/2024 |
| 8.0.1.5 | 246 | 5/15/2024 |
| 8.0.1.4 | 218 | 5/14/2024 |
| 8.0.1.3 | 233 | 5/10/2024 |
| 8.0.1.2 | 268 | 5/8/2024 |
| 8.0.1.1 | 243 | 5/7/2024 |
| 8.0.0.9 | 229 | 5/1/2024 |