EaCloud.Swagger
8.0.1.9
dotnet add package EaCloud.Swagger --version 8.0.1.9
NuGet\Install-Package EaCloud.Swagger -Version 8.0.1.9
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EaCloud.Swagger" Version="8.0.1.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EaCloud.Swagger --version 8.0.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EaCloud.Swagger, 8.0.1.9"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EaCloud.Swagger as a Cake Addin #addin nuget:?package=EaCloud.Swagger&version=8.0.1.9 // Install EaCloud.Swagger as a Cake Tool #tool nuget:?package=EaCloud.Swagger&version=8.0.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EaCloud Swagger API 文档生成组件
说明
集成 Swagger
API 文档生成组件,方便前后端分离的开发模式中前后端开发人员的数据接口对接工作。基于Swagger
的工作原理,API的输入输出都需使用强类型
的数据类型,Swagger
才能发挥更好的作用,而EaCloud框架通过AutoMapper
的ProjectTo
对业务实体到输出DTOIOutputDto
提供了自动映射功能,能有效减轻后端开发中数据对象属性映射的工作量。
用法
可按照如下配置方式使用:
- 通过nuget引用
EaCloud.Swagger
程序集
Install-Package EaCloud.Swagger
- 在
appsettings.json
中 的EaCloud
节点下添加如下配置节点
{
//Swagger选项
"Swagger": {
"UI": "swagger", //界面样式:knife4j、swagger(默认)。
"DocumentTitle": "接口文档", //界面标题
"HeadContent": "", //标头内容
"RoutePrefix": "swagger", //路由前缀
"IsHideSchemas": false, //隐藏架构
"MiniProfiler": true, //启用轻量级工具分析
// 注释文档
"CommentDoc": {
"SearchPattern": "eacloud*.xml", //与要搜索的文件名匹配的搜索字符串。此参数可以包含有效文本路径和通配符(*和?)的组合字符,但它不支持正则表达式。默认"eacloud*.xml"。
"FilterExpression": "" //过滤文档文件的正则表达式,用于筛选后的特殊过滤。
},
//分组集合
"Groups": [
{
"Name": "api", //名称
"Title": "框架API", //标题
"Description": "框架API", //描述
"Url": "", //Url
// 联系人
"Contact": {
"Name": "EaCloud", //联系人名称
"Url": "https://toscode.gitee.com/eacloud", //联系人链接
"Email": "union@sanqing.tech" //联系人邮箱
},
// 许可
"License": {
"Name": "Apache", //许可名称
"Url": "https://www.apache.org/licenses/LICENSE-2.0" //许可链接
},
"Visible": true //是否可见
},
{
"Name": "buss", //名称
"Title": "业务API", //标题
"Description": "业务API", //描述
"Url": "/buss/swagger.json", //Url
// 联系人
"Contact": {
"Name": "EaCloud", //联系人名称
"Url": "https://toscode.gitee.com/eacloud", //联系人链接
"Email": "union@sanqing.tech" //联系人邮箱
},
// 许可
"License": {
"Name": "MIT", //许可名称
"Url": "https://opensource.org/licenses/MIT" //许可链接
},
"Visible": false //是否可见
}
],
"Enabled": true //是否启用
},
}
- 要禁用Swagger,可以设置
Enabled: false
交流
QQ群号:863605868 | 微信号:SeonHu |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- EaCloud.MiniProfiler (>= 8.0.1.9)
- Swashbuckle.AspNetCore (>= 7.0.0)
- Swashbuckle.AspNetCore.Newtonsoft (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.1.9 | 71 | 11/15/2024 |
8.0.1.8 | 77 | 11/13/2024 |
8.0.1.7 | 109 | 10/9/2024 |
8.0.1.6 | 103 | 9/29/2024 |
8.0.1.5 | 111 | 9/13/2024 |
8.0.1.4 | 133 | 8/10/2024 |
8.0.1.3 | 110 | 8/7/2024 |
8.0.1.2 | 107 | 8/7/2024 |
8.0.1.1 | 107 | 8/7/2024 |
8.0.0.9 | 94 | 8/7/2024 |
8.0.0.8 | 69 | 8/5/2024 |
8.0.0.7 | 76 | 8/2/2024 |
8.0.0.6 | 82 | 8/1/2024 |
8.0.0.5 | 78 | 8/1/2024 |
8.0.0.4 | 61 | 7/31/2024 |
8.0.0.3 | 81 | 7/30/2024 |
8.0.0.2 | 98 | 7/25/2024 |
8.0.0.1 | 95 | 7/24/2024 |
7.0.9.4 | 112 | 7/19/2024 |
7.0.9.3 | 99 | 7/11/2024 |
7.0.9.2 | 118 | 7/6/2024 |
7.0.9.1 | 97 | 7/3/2024 |
7.0.8.9 | 119 | 6/28/2024 |
7.0.8.8 | 108 | 6/26/2024 |
7.0.8.7 | 109 | 6/22/2024 |
7.0.8.6 | 99 | 6/14/2024 |
7.0.8.5 | 103 | 5/31/2024 |
7.0.8.4 | 110 | 5/21/2024 |
7.0.8.3 | 117 | 5/21/2024 |
7.0.8.2 | 91 | 5/20/2024 |
7.0.8.1 | 104 | 5/20/2024 |
7.0.7.9 | 98 | 5/15/2024 |
7.0.7.8 | 80 | 5/10/2024 |
7.0.7.7 | 87 | 5/9/2024 |
7.0.7.6 | 81 | 5/9/2024 |
7.0.7.5 | 134 | 5/7/2024 |
7.0.7.4 | 114 | 4/28/2024 |
7.0.7.3 | 123 | 4/26/2024 |
7.0.7.2 | 125 | 4/21/2024 |
7.0.7.1 | 113 | 4/19/2024 |
7.0.6.9 | 116 | 4/15/2024 |
7.0.6.8 | 93 | 4/11/2024 |
7.0.6.7 | 116 | 4/11/2024 |
7.0.6.6 | 116 | 4/7/2024 |
7.0.6.5 | 125 | 4/7/2024 |
7.0.6.4 | 120 | 4/7/2024 |
7.0.6.3 | 118 | 4/7/2024 |
7.0.6.2 | 108 | 4/3/2024 |
7.0.6.1 | 119 | 4/3/2024 |
7.0.5.9 | 126 | 3/27/2024 |
7.0.5.8 | 128 | 3/23/2024 |
7.0.5.7 | 138 | 3/17/2024 |
7.0.5.6 | 128 | 3/17/2024 |
7.0.5.5 | 115 | 3/16/2024 |
7.0.5.4 | 123 | 3/13/2024 |
7.0.5.3 | 133 | 3/13/2024 |
7.0.5.2 | 125 | 3/6/2024 |
7.0.5.1 | 121 | 2/21/2024 |
7.0.4.9 | 126 | 2/21/2024 |
7.0.4.8 | 107 | 2/18/2024 |
7.0.4.7 | 117 | 2/5/2024 |
7.0.4.6 | 120 | 2/1/2024 |
7.0.4.5 | 105 | 1/26/2024 |
7.0.4.4 | 116 | 1/22/2024 |
7.0.4.3 | 133 | 1/17/2024 |
7.0.4.2 | 117 | 1/16/2024 |
7.0.4.1 | 105 | 1/16/2024 |
7.0.3.9 | 108 | 1/15/2024 |
7.0.3.8 | 159 | 1/3/2024 |
7.0.3.7 | 146 | 12/28/2023 |
7.0.3.6 | 134 | 12/27/2023 |
7.0.3.5 | 120 | 12/22/2023 |
7.0.3.4 | 110 | 12/22/2023 |
7.0.3.3 | 148 | 12/13/2023 |
7.0.3.2 | 112 | 12/13/2023 |
7.0.3.1 | 111 | 12/12/2023 |
7.0.2.9 | 168 | 11/26/2023 |
7.0.2.8 | 117 | 11/26/2023 |
7.0.2.7 | 156 | 9/26/2023 |
7.0.2.6 | 134 | 9/25/2023 |
7.0.2.5 | 134 | 9/15/2023 |
7.0.2.4 | 128 | 7/27/2023 |
7.0.2.3 | 160 | 7/22/2023 |
7.0.2.2 | 157 | 7/22/2023 |
7.0.2.1 | 191 | 7/21/2023 |
7.0.1.9 | 166 | 7/21/2023 |
7.0.1.8 | 140 | 7/20/2023 |
7.0.1.7 | 165 | 7/20/2023 |
7.0.1.6 | 188 | 7/4/2023 |
7.0.1.5 | 158 | 6/16/2023 |
7.0.1.4 | 168 | 6/13/2023 |
7.0.1.3 | 180 | 6/8/2023 |
7.0.1.2 | 159 | 6/2/2023 |
7.0.1.1 | 203 | 5/11/2023 |
7.0.0.9 | 184 | 5/10/2023 |
7.0.0.8 | 169 | 5/10/2023 |
7.0.0.7 | 206 | 4/19/2023 |
7.0.0.6 | 216 | 4/18/2023 |
7.0.0.5 | 250 | 3/27/2023 |
7.0.0.4 | 290 | 3/23/2023 |
7.0.0.3 | 308 | 1/31/2023 |
7.0.0.2 | 316 | 1/30/2023 |
7.0.0.1 | 327 | 12/24/2022 |
6.0.2.5 | 345 | 11/16/2022 |
6.0.2.4 | 359 | 11/10/2022 |
6.0.2.3 | 411 | 10/11/2022 |
6.0.2.2 | 488 | 9/23/2022 |
6.0.2.1 | 477 | 8/14/2022 |
6.0.1.9 | 488 | 8/13/2022 |
6.0.1.8 | 519 | 6/6/2022 |
6.0.1.7 | 532 | 5/26/2022 |
6.0.1.6 | 552 | 5/11/2022 |
6.0.1.5 | 529 | 5/10/2022 |
6.0.1.4 | 541 | 4/8/2022 |
6.0.1.3 | 577 | 4/2/2022 |
6.0.1.2 | 552 | 4/2/2022 |
6.0.1.1 | 543 | 3/18/2022 |
6.0.0.9 | 469 | 3/5/2022 |
6.0.0.8 | 466 | 2/19/2022 |
6.0.0.7 | 513 | 2/15/2022 |
6.0.0.6 | 466 | 2/14/2022 |
6.0.0.5 | 457 | 1/28/2022 |
6.0.0.4 | 482 | 1/13/2022 |
6.0.0.3 | 499 | 1/12/2022 |
6.0.0.2 | 333 | 12/21/2021 |
6.0.0.1 | 348 | 12/13/2021 |
5.0.3.7 | 372 | 10/16/2021 |
5.0.3.6 | 372 | 10/14/2021 |
5.0.3.5 | 367 | 10/13/2021 |
5.0.3.4 | 383 | 10/8/2021 |
5.0.3.3 | 370 | 9/17/2021 |
5.0.3.2 | 391 | 9/16/2021 |
5.0.3.1 | 352 | 9/15/2021 |
5.0.2.9 | 341 | 9/15/2021 |
5.0.2.8 | 356 | 8/31/2021 |
5.0.2.7 | 396 | 8/28/2021 |
5.0.2.6 | 388 | 8/22/2021 |
5.0.2.5 | 388 | 8/13/2021 |
5.0.2.4 | 358 | 8/13/2021 |
5.0.2.3 | 399 | 7/8/2021 |
5.0.2.2 | 349 | 7/1/2021 |
5.0.2.1 | 386 | 6/16/2021 |
5.0.1.9 | 346 | 5/12/2021 |
5.0.1.8 | 355 | 5/9/2021 |
5.0.1.7 | 401 | 5/7/2021 |
5.0.1.6 | 416 | 4/17/2021 |
5.0.1.5 | 353 | 4/16/2021 |
5.0.1.4 | 356 | 4/15/2021 |
5.0.1.3 | 328 | 4/15/2021 |
5.0.1.2 | 368 | 4/12/2021 |