EaCloud.Swagger
9.0.1.1
dotnet add package EaCloud.Swagger --version 9.0.1.1
NuGet\Install-Package EaCloud.Swagger -Version 9.0.1.1
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="9.0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EaCloud.Swagger" Version="9.0.1.1" />
<PackageReference Include="EaCloud.Swagger" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EaCloud.Swagger --version 9.0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EaCloud.Swagger, 9.0.1.1"
#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.
#:package EaCloud.Swagger@9.0.1.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EaCloud.Swagger&version=9.0.1.1
#tool nuget:?package=EaCloud.Swagger&version=9.0.1.1
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 | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- EaCloud.MiniProfiler (>= 9.0.1.1)
- Swashbuckle.AspNetCore (>= 9.0.6)
- Swashbuckle.AspNetCore.Newtonsoft (>= 9.0.6)
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 |
|---|---|---|
| 9.0.1.1 | 344 | 10/22/2025 |
| 9.0.0.9 | 295 | 8/12/2025 |
| 9.0.0.8 | 233 | 7/5/2025 |
| 9.0.0.7 | 304 | 6/25/2025 |
| 9.0.0.6 | 321 | 6/18/2025 |
| 9.0.0.5 | 312 | 6/14/2025 |
| 9.0.0.4 | 307 | 5/8/2025 |
| 9.0.0.3 | 328 | 4/23/2025 |
| 9.0.0.2 | 344 | 4/11/2025 |
| 9.0.0.1 | 325 | 3/21/2025 |
| 8.0.1.9 | 291 | 11/15/2024 |
| 8.0.1.8 | 284 | 11/13/2024 |
| 8.0.1.7 | 315 | 10/9/2024 |
| 8.0.1.6 | 295 | 9/29/2024 |
| 8.0.1.5 | 302 | 9/13/2024 |
| 8.0.1.4 | 321 | 8/10/2024 |
| 8.0.1.3 | 301 | 8/7/2024 |
| 8.0.1.2 | 301 | 8/7/2024 |
| 8.0.1.1 | 285 | 8/7/2024 |
| 8.0.0.9 | 275 | 8/7/2024 |
Loading failed

