EaCloud.Swagger 7.0.7.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package EaCloud.Swagger --version 7.0.7.5
                    
NuGet\Install-Package EaCloud.Swagger -Version 7.0.7.5
                    
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="7.0.7.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EaCloud.Swagger" Version="7.0.7.5" />
                    
Directory.Packages.props
<PackageReference Include="EaCloud.Swagger" />
                    
Project file
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 7.0.7.5
                    
#r "nuget: EaCloud.Swagger, 7.0.7.5"
                    
#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.
#addin nuget:?package=EaCloud.Swagger&version=7.0.7.5
                    
Install EaCloud.Swagger as a Cake Addin
#tool nuget:?package=EaCloud.Swagger&version=7.0.7.5
                    
Install EaCloud.Swagger as a Cake Tool

EaCloud Swagger API 文档生成组件

Member project of EaCloud Team NuGet Badge GitHub license

说明

集成 Swagger API 文档生成组件,方便前后端分离的开发模式中前后端开发人员的数据接口对接工作。基于Swagger的工作原理,API的输入输出都需使用强类型的数据类型,Swagger才能发挥更好的作用,而EaCloud框架通过AutoMapperProjectTo对业务实体到输出DTOIOutputDto提供了自动映射功能,能有效减轻后端开发中数据对象属性映射的工作量。

用法

可按照如下配置方式使用:

  1. 通过nuget引用 EaCloud.Swagger 程序集
Install-Package EaCloud.Swagger
  1. 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 //是否启用
    },
}
  1. 要禁用Swagger,可以设置Enabled: false

交流

QQ WeChat
QQ群号:863605868 微信号:SeonHu
Product 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.  net9.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.0.1 128 3/21/2025
8.0.1.9 107 11/15/2024
8.0.1.8 104 11/13/2024
8.0.1.7 124 10/9/2024
8.0.1.6 119 9/29/2024
8.0.1.5 126 9/13/2024
8.0.1.4 148 8/10/2024
8.0.1.3 131 8/7/2024
8.0.1.2 121 8/7/2024
8.0.1.1 123 8/7/2024
8.0.0.9 108 8/7/2024
8.0.0.8 94 8/5/2024
8.0.0.7 94 8/2/2024
8.0.0.6 97 8/1/2024
8.0.0.5 94 8/1/2024
8.0.0.4 80 7/31/2024
8.0.0.3 100 7/30/2024
8.0.0.2 116 7/25/2024
8.0.0.1 108 7/24/2024
7.0.9.4 131 7/19/2024
7.0.9.3 115 7/11/2024
7.0.9.2 136 7/6/2024
7.0.9.1 117 7/3/2024
7.0.8.9 134 6/28/2024
7.0.8.8 130 6/26/2024
7.0.8.7 130 6/22/2024
7.0.8.6 122 6/14/2024
7.0.8.5 118 5/31/2024
7.0.8.4 122 5/21/2024
7.0.8.3 130 5/21/2024
7.0.8.2 108 5/20/2024
7.0.8.1 126 5/20/2024
7.0.7.9 120 5/15/2024
7.0.7.8 98 5/10/2024
7.0.7.7 109 5/9/2024
7.0.7.6 99 5/9/2024
7.0.7.5 151 5/7/2024
7.0.7.4 126 4/28/2024
7.0.7.3 136 4/26/2024
7.0.7.2 144 4/21/2024
7.0.7.1 126 4/19/2024
7.0.6.9 129 4/15/2024
7.0.6.8 111 4/11/2024
7.0.6.7 129 4/11/2024
7.0.6.6 126 4/7/2024
7.0.6.5 137 4/7/2024
7.0.6.4 135 4/7/2024
7.0.6.3 130 4/7/2024
7.0.6.2 125 4/3/2024
7.0.6.1 130 4/3/2024
7.0.5.9 143 3/27/2024
7.0.5.8 140 3/23/2024
7.0.5.7 149 3/17/2024
7.0.5.6 144 3/17/2024
7.0.5.5 126 3/16/2024
7.0.5.4 136 3/13/2024
7.0.5.3 147 3/13/2024
7.0.5.2 134 3/6/2024
7.0.5.1 145 2/21/2024
7.0.4.9 140 2/21/2024
7.0.4.8 124 2/18/2024
7.0.4.7 135 2/5/2024
7.0.4.6 140 2/1/2024
7.0.4.5 120 1/26/2024
7.0.4.4 128 1/22/2024
7.0.4.3 145 1/17/2024
7.0.4.2 132 1/16/2024
7.0.4.1 115 1/16/2024
7.0.3.9 126 1/15/2024
7.0.3.8 176 1/3/2024
7.0.3.7 156 12/28/2023
7.0.3.6 145 12/27/2023
7.0.3.5 131 12/22/2023
7.0.3.4 121 12/22/2023
7.0.3.3 159 12/13/2023
7.0.3.2 123 12/13/2023
7.0.3.1 124 12/12/2023
7.0.2.9 175 11/26/2023
7.0.2.8 124 11/26/2023
7.0.2.7 165 9/26/2023
7.0.2.6 141 9/25/2023
7.0.2.5 141 9/15/2023
7.0.2.4 135 7/27/2023
7.0.2.3 167 7/22/2023
7.0.2.2 163 7/22/2023
7.0.2.1 205 7/21/2023
7.0.1.9 179 7/21/2023
7.0.1.8 150 7/20/2023
7.0.1.7 174 7/20/2023
7.0.1.6 201 7/4/2023
7.0.1.5 167 6/16/2023
7.0.1.4 187 6/13/2023
7.0.1.3 196 6/8/2023
7.0.1.2 175 6/2/2023
7.0.1.1 216 5/11/2023
7.0.0.9 199 5/10/2023
7.0.0.8 184 5/10/2023
7.0.0.7 221 4/19/2023
7.0.0.6 228 4/18/2023
7.0.0.5 267 3/27/2023
7.0.0.4 305 3/23/2023
7.0.0.3 324 1/31/2023
7.0.0.2 341 1/30/2023
7.0.0.1 344 12/24/2022
6.0.2.5 367 11/16/2022
6.0.2.4 377 11/10/2022
6.0.2.3 430 10/11/2022
6.0.2.2 509 9/23/2022
6.0.2.1 504 8/14/2022
6.0.1.9 514 8/13/2022
6.0.1.8 545 6/6/2022
6.0.1.7 556 5/26/2022
6.0.1.6 572 5/11/2022
6.0.1.5 548 5/10/2022
6.0.1.4 562 4/8/2022
6.0.1.3 604 4/2/2022
6.0.1.2 571 4/2/2022
6.0.1.1 570 3/18/2022
6.0.0.9 491 3/5/2022
6.0.0.8 494 2/19/2022
6.0.0.7 534 2/15/2022
6.0.0.6 489 2/14/2022
6.0.0.5 478 1/28/2022
6.0.0.4 510 1/13/2022
6.0.0.3 522 1/12/2022
6.0.0.2 359 12/21/2021
6.0.0.1 372 12/13/2021
5.0.3.7 394 10/16/2021
5.0.3.6 396 10/14/2021
5.0.3.5 394 10/13/2021
5.0.3.4 404 10/8/2021
5.0.3.3 392 9/17/2021
5.0.3.2 413 9/16/2021
5.0.3.1 373 9/15/2021
5.0.2.9 363 9/15/2021
5.0.2.8 378 8/31/2021
5.0.2.7 418 8/28/2021
5.0.2.6 411 8/22/2021
5.0.2.5 417 8/13/2021
5.0.2.4 387 8/13/2021
5.0.2.3 420 7/8/2021
5.0.2.2 370 7/1/2021
5.0.2.1 413 6/16/2021
5.0.1.9 373 5/12/2021
5.0.1.8 376 5/9/2021
5.0.1.7 423 5/7/2021
5.0.1.6 439 4/17/2021
5.0.1.5 375 4/16/2021
5.0.1.4 379 4/15/2021
5.0.1.3 350 4/15/2021
5.0.1.2 390 4/12/2021