EaCloud.Swagger 6.0.1.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package EaCloud.Swagger --version 6.0.1.3
NuGet\Install-Package EaCloud.Swagger -Version 6.0.1.3
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="6.0.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EaCloud.Swagger --version 6.0.1.3
#r "nuget: EaCloud.Swagger, 6.0.1.3"
#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=6.0.1.3

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

EaCloud Swagger API 文档生成组件

说明

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

用法

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

  1. 通过nuget引用 EaCloud.Swagger 程序集

Install-Package EaCloud.Swagger 2. 在 appsettings.json 中添加如下配置节点

{
  "Swagger": {
      //Swagger终结点
      "Endpoints": [
        {
          "Title": "框架API", //标题
          "Version": "v1", //版本
          "Url": "/swagger/v1/swagger.json" //Url
        },
        {
          "Title": "业务API",
          "Version": "buss",
          "Url": "/swagger/buss/swagger.json"
        }
      ],
      "RoutePrefix": "swagger", //路由前缀
      "IsHideSchemas": false, //隐藏架构
      "MiniProfiler": true, //启用轻量级工具分析
      "Enabled": true
    }
}
  1. 要禁用Swagger,可以设置Enabled: false
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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.8.5 0 5/31/2024
7.0.8.4 75 5/21/2024
7.0.8.3 83 5/21/2024
7.0.8.2 59 5/20/2024
7.0.8.1 69 5/20/2024
7.0.7.9 83 5/15/2024
7.0.7.8 46 5/10/2024
7.0.7.7 52 5/9/2024
7.0.7.6 50 5/9/2024
7.0.7.5 98 5/7/2024
7.0.7.4 87 4/28/2024
7.0.7.3 96 4/26/2024
7.0.7.2 88 4/21/2024
7.0.7.1 80 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 119 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 141 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 155 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 278 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 456 9/23/2022
6.0.2.1 443 8/14/2022
6.0.1.9 460 8/13/2022
6.0.1.8 490 6/6/2022
6.0.1.7 500 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 348 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 317 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