EaCloud.Swagger
7.0.2.2
See the version list below for details.
dotnet add package EaCloud.Swagger --version 7.0.2.2
NuGet\Install-Package EaCloud.Swagger -Version 7.0.2.2
<PackageReference Include="EaCloud.Swagger" Version="7.0.2.2" />
paket add EaCloud.Swagger --version 7.0.2.2
#r "nuget: EaCloud.Swagger, 7.0.2.2"
// Install EaCloud.Swagger as a Cake Addin #addin nuget:?package=EaCloud.Swagger&version=7.0.2.2 // Install EaCloud.Swagger as a Cake Tool #tool nuget:?package=EaCloud.Swagger&version=7.0.2.2
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": "/swagger/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
交流
| | ![WeChat](https://raw.githubusercontent.com/Seon-Hu/eacloud_resources/main/images/Wechat_SeonHu_256px.png https://dev.azure.com/eacloud/856b2c4a-a89e-472c-b8cf-b0bbac0424b0/_apis/git/repositories/efcbea4d-ddc0-46cf-a64f-f56dc28080d5/items?path=/images/Wechat_SeonHu_256px.png&versionDescriptor%5BversionOptions%5D=0&versionDescriptor%5BversionType%5D=0&versionDescriptor%5Bversion%5D=main&resolveLfs=true&%24format=octetStream&api-version=5.0) | | :-: | :-: | | QQ群号:863605868 | 微信号:SeonHu |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net7.0
- EaCloud.AspNetCore (>= 7.0.2.2)
- EaCloud.MiniProfiler (>= 7.0.2.2)
- Swashbuckle.AspNetCore (>= 6.5.0)
- Swashbuckle.AspNetCore.Newtonsoft (>= 6.5.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 | 33 | 11/15/2024 |
8.0.1.8 | 37 | 11/13/2024 |
8.0.1.7 | 104 | 10/9/2024 |
8.0.1.6 | 100 | 9/29/2024 |
8.0.1.5 | 108 | 9/13/2024 |
8.0.1.4 | 130 | 8/10/2024 |
8.0.1.3 | 107 | 8/7/2024 |
8.0.1.2 | 104 | 8/7/2024 |
8.0.1.1 | 104 | 8/7/2024 |
8.0.0.9 | 91 | 8/7/2024 |
8.0.0.8 | 66 | 8/5/2024 |
8.0.0.7 | 73 | 8/2/2024 |
8.0.0.6 | 79 | 8/1/2024 |
8.0.0.5 | 75 | 8/1/2024 |
8.0.0.4 | 58 | 7/31/2024 |
8.0.0.3 | 78 | 7/30/2024 |
8.0.0.2 | 95 | 7/25/2024 |
8.0.0.1 | 92 | 7/24/2024 |
7.0.9.4 | 109 | 7/19/2024 |
7.0.9.3 | 96 | 7/11/2024 |
7.0.9.2 | 115 | 7/6/2024 |
7.0.9.1 | 94 | 7/3/2024 |
7.0.8.9 | 116 | 6/28/2024 |
7.0.8.8 | 105 | 6/26/2024 |
7.0.8.7 | 106 | 6/22/2024 |
7.0.8.6 | 96 | 6/14/2024 |
7.0.8.5 | 100 | 5/31/2024 |
7.0.8.4 | 107 | 5/21/2024 |
7.0.8.3 | 114 | 5/21/2024 |
7.0.8.2 | 88 | 5/20/2024 |
7.0.8.1 | 101 | 5/20/2024 |
7.0.7.9 | 95 | 5/15/2024 |
7.0.7.8 | 77 | 5/10/2024 |
7.0.7.7 | 84 | 5/9/2024 |
7.0.7.6 | 78 | 5/9/2024 |
7.0.7.5 | 131 | 5/7/2024 |
7.0.7.4 | 111 | 4/28/2024 |
7.0.7.3 | 120 | 4/26/2024 |
7.0.7.2 | 122 | 4/21/2024 |
7.0.7.1 | 110 | 4/19/2024 |
7.0.6.9 | 113 | 4/15/2024 |
7.0.6.8 | 90 | 4/11/2024 |
7.0.6.7 | 113 | 4/11/2024 |
7.0.6.6 | 113 | 4/7/2024 |
7.0.6.5 | 122 | 4/7/2024 |
7.0.6.4 | 117 | 4/7/2024 |
7.0.6.3 | 115 | 4/7/2024 |
7.0.6.2 | 105 | 4/3/2024 |
7.0.6.1 | 114 | 4/3/2024 |
7.0.5.9 | 123 | 3/27/2024 |
7.0.5.8 | 125 | 3/23/2024 |
7.0.5.7 | 135 | 3/17/2024 |
7.0.5.6 | 125 | 3/17/2024 |
7.0.5.5 | 112 | 3/16/2024 |
7.0.5.4 | 120 | 3/13/2024 |
7.0.5.3 | 130 | 3/13/2024 |
7.0.5.2 | 122 | 3/6/2024 |
7.0.5.1 | 116 | 2/21/2024 |
7.0.4.9 | 123 | 2/21/2024 |
7.0.4.8 | 104 | 2/18/2024 |
7.0.4.7 | 114 | 2/5/2024 |
7.0.4.6 | 117 | 2/1/2024 |
7.0.4.5 | 102 | 1/26/2024 |
7.0.4.4 | 113 | 1/22/2024 |
7.0.4.3 | 130 | 1/17/2024 |
7.0.4.2 | 112 | 1/16/2024 |
7.0.4.1 | 102 | 1/16/2024 |
7.0.3.9 | 105 | 1/15/2024 |
7.0.3.8 | 156 | 1/3/2024 |
7.0.3.7 | 143 | 12/28/2023 |
7.0.3.6 | 131 | 12/27/2023 |
7.0.3.5 | 117 | 12/22/2023 |
7.0.3.4 | 107 | 12/22/2023 |
7.0.3.3 | 145 | 12/13/2023 |
7.0.3.2 | 109 | 12/13/2023 |
7.0.3.1 | 106 | 12/12/2023 |
7.0.2.9 | 165 | 11/26/2023 |
7.0.2.8 | 114 | 11/26/2023 |
7.0.2.7 | 153 | 9/26/2023 |
7.0.2.6 | 129 | 9/25/2023 |
7.0.2.5 | 131 | 9/15/2023 |
7.0.2.4 | 125 | 7/27/2023 |
7.0.2.3 | 155 | 7/22/2023 |
7.0.2.2 | 154 | 7/22/2023 |
7.0.2.1 | 188 | 7/21/2023 |
7.0.1.9 | 163 | 7/21/2023 |
7.0.1.8 | 137 | 7/20/2023 |
7.0.1.7 | 162 | 7/20/2023 |
7.0.1.6 | 185 | 7/4/2023 |
7.0.1.5 | 155 | 6/16/2023 |
7.0.1.4 | 165 | 6/13/2023 |
7.0.1.3 | 177 | 6/8/2023 |
7.0.1.2 | 156 | 6/2/2023 |
7.0.1.1 | 200 | 5/11/2023 |
7.0.0.9 | 181 | 5/10/2023 |
7.0.0.8 | 166 | 5/10/2023 |
7.0.0.7 | 203 | 4/19/2023 |
7.0.0.6 | 213 | 4/18/2023 |
7.0.0.5 | 247 | 3/27/2023 |
7.0.0.4 | 287 | 3/23/2023 |
7.0.0.3 | 305 | 1/31/2023 |
7.0.0.2 | 313 | 1/30/2023 |
7.0.0.1 | 324 | 12/24/2022 |
6.0.2.5 | 342 | 11/16/2022 |
6.0.2.4 | 356 | 11/10/2022 |
6.0.2.3 | 408 | 10/11/2022 |
6.0.2.2 | 485 | 9/23/2022 |
6.0.2.1 | 474 | 8/14/2022 |
6.0.1.9 | 485 | 8/13/2022 |
6.0.1.8 | 516 | 6/6/2022 |
6.0.1.7 | 529 | 5/26/2022 |
6.0.1.6 | 549 | 5/11/2022 |
6.0.1.5 | 526 | 5/10/2022 |
6.0.1.4 | 538 | 4/8/2022 |
6.0.1.3 | 574 | 4/2/2022 |
6.0.1.2 | 549 | 4/2/2022 |
6.0.1.1 | 540 | 3/18/2022 |
6.0.0.9 | 466 | 3/5/2022 |
6.0.0.8 | 463 | 2/19/2022 |
6.0.0.7 | 510 | 2/15/2022 |
6.0.0.6 | 463 | 2/14/2022 |
6.0.0.5 | 452 | 1/28/2022 |
6.0.0.4 | 479 | 1/13/2022 |
6.0.0.3 | 496 | 1/12/2022 |
6.0.0.2 | 330 | 12/21/2021 |
6.0.0.1 | 345 | 12/13/2021 |
5.0.3.7 | 369 | 10/16/2021 |
5.0.3.6 | 369 | 10/14/2021 |
5.0.3.5 | 364 | 10/13/2021 |
5.0.3.4 | 380 | 10/8/2021 |
5.0.3.3 | 367 | 9/17/2021 |
5.0.3.2 | 388 | 9/16/2021 |
5.0.3.1 | 349 | 9/15/2021 |
5.0.2.9 | 338 | 9/15/2021 |
5.0.2.8 | 353 | 8/31/2021 |
5.0.2.7 | 393 | 8/28/2021 |
5.0.2.6 | 385 | 8/22/2021 |
5.0.2.5 | 385 | 8/13/2021 |
5.0.2.4 | 355 | 8/13/2021 |
5.0.2.3 | 396 | 7/8/2021 |
5.0.2.2 | 346 | 7/1/2021 |
5.0.2.1 | 383 | 6/16/2021 |
5.0.1.9 | 343 | 5/12/2021 |
5.0.1.8 | 352 | 5/9/2021 |
5.0.1.7 | 398 | 5/7/2021 |
5.0.1.6 | 413 | 4/17/2021 |
5.0.1.5 | 350 | 4/16/2021 |
5.0.1.4 | 353 | 4/15/2021 |
5.0.1.3 | 325 | 4/15/2021 |
5.0.1.2 | 365 | 4/12/2021 |