EaCloud.Swagger 7.0.7.4

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.4
NuGet\Install-Package EaCloud.Swagger -Version 7.0.7.4
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.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EaCloud.Swagger --version 7.0.7.4
#r "nuget: EaCloud.Swagger, 7.0.7.4"
#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=7.0.7.4

// Install EaCloud.Swagger as a Cake Tool
#tool nuget:?package=EaCloud.Swagger&version=7.0.7.4

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. 
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
7.0.7.9 42 5/15/2024
7.0.7.8 39 5/10/2024
7.0.7.7 47 5/9/2024
7.0.7.6 45 5/9/2024
7.0.7.5 88 5/7/2024
7.0.7.4 80 4/28/2024
7.0.7.3 92 4/26/2024
7.0.7.2 88 4/21/2024
7.0.7.1 73 4/19/2024
7.0.6.9 86 4/15/2024
7.0.6.8 79 4/11/2024
7.0.6.7 84 4/11/2024
7.0.6.6 85 4/7/2024
7.0.6.5 84 4/7/2024
7.0.6.4 87 4/7/2024
7.0.6.3 80 4/7/2024
7.0.6.2 78 4/3/2024
7.0.6.1 86 4/3/2024
7.0.5.9 91 3/27/2024
7.0.5.8 92 3/23/2024
7.0.5.7 107 3/17/2024
7.0.5.6 94 3/17/2024
7.0.5.5 81 3/16/2024
7.0.5.4 94 3/13/2024
7.0.5.3 98 3/13/2024
7.0.5.2 93 3/6/2024
7.0.5.1 86 2/21/2024
7.0.4.9 93 2/21/2024
7.0.4.8 77 2/18/2024
7.0.4.7 78 2/5/2024
7.0.4.6 83 2/1/2024
7.0.4.5 79 1/26/2024
7.0.4.4 87 1/22/2024
7.0.4.3 101 1/17/2024
7.0.4.2 88 1/16/2024
7.0.4.1 90 1/16/2024
7.0.3.9 74 1/15/2024
7.0.3.8 124 1/3/2024
7.0.3.7 115 12/28/2023
7.0.3.6 106 12/27/2023
7.0.3.5 87 12/22/2023
7.0.3.4 75 12/22/2023
7.0.3.3 112 12/13/2023
7.0.3.2 78 12/13/2023
7.0.3.1 83 12/12/2023
7.0.2.9 135 11/26/2023
7.0.2.8 93 11/26/2023
7.0.2.7 129 9/26/2023
7.0.2.6 108 9/25/2023
7.0.2.5 108 9/15/2023
7.0.2.4 97 7/27/2023
7.0.2.3 127 7/22/2023
7.0.2.2 124 7/22/2023
7.0.2.1 160 7/21/2023
7.0.1.9 131 7/21/2023
7.0.1.8 128 7/20/2023
7.0.1.7 132 7/20/2023
7.0.1.6 161 7/4/2023
7.0.1.5 128 6/16/2023
7.0.1.4 140 6/13/2023
7.0.1.3 149 6/8/2023
7.0.1.2 125 6/2/2023
7.0.1.1 174 5/11/2023
7.0.0.9 162 5/10/2023
7.0.0.8 152 5/10/2023
7.0.0.7 171 4/19/2023
7.0.0.6 188 4/18/2023
7.0.0.5 222 3/27/2023
7.0.0.4 260 3/23/2023
7.0.0.3 276 1/31/2023
7.0.0.2 284 1/30/2023
7.0.0.1 292 12/24/2022
6.0.2.5 317 11/16/2022
6.0.2.4 319 11/10/2022
6.0.2.3 383 10/11/2022
6.0.2.2 454 9/23/2022
6.0.2.1 443 8/14/2022
6.0.1.9 454 8/13/2022
6.0.1.8 489 6/6/2022
6.0.1.7 499 5/26/2022
6.0.1.6 519 5/11/2022
6.0.1.5 492 5/10/2022
6.0.1.4 514 4/8/2022
6.0.1.3 542 4/2/2022
6.0.1.2 518 4/2/2022
6.0.1.1 516 3/18/2022
6.0.0.9 435 3/5/2022
6.0.0.8 430 2/19/2022
6.0.0.7 487 2/15/2022
6.0.0.6 435 2/14/2022
6.0.0.5 438 1/28/2022
6.0.0.4 451 1/13/2022
6.0.0.3 468 1/12/2022
6.0.0.2 303 12/21/2021
6.0.0.1 315 12/13/2021
5.0.3.7 347 10/16/2021
5.0.3.6 341 10/14/2021
5.0.3.5 342 10/13/2021
5.0.3.4 352 10/8/2021
5.0.3.3 341 9/17/2021
5.0.3.2 367 9/16/2021
5.0.3.1 323 9/15/2021
5.0.2.9 309 9/15/2021
5.0.2.8 324 8/31/2021
5.0.2.7 368 8/28/2021
5.0.2.6 344 8/22/2021
5.0.2.5 351 8/13/2021
5.0.2.4 322 8/13/2021
5.0.2.3 374 7/8/2021
5.0.2.2 322 7/1/2021
5.0.2.1 352 6/16/2021
5.0.1.9 311 5/12/2021
5.0.1.8 320 5/9/2021
5.0.1.7 370 5/7/2021
5.0.1.6 386 4/17/2021
5.0.1.5 325 4/16/2021
5.0.1.4 322 4/15/2021
5.0.1.3 306 4/15/2021
5.0.1.2 338 4/12/2021
5.0.1.1 337 4/8/2021