EasilyNET.WebCore.Swagger 4.25.602.41

There is a newer version of this package available.
See the version list below for details.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package EasilyNET.WebCore.Swagger --version 4.25.602.41
                    
NuGet\Install-Package EasilyNET.WebCore.Swagger -Version 4.25.602.41
                    
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="EasilyNET.WebCore.Swagger" Version="4.25.602.41" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EasilyNET.WebCore.Swagger" Version="4.25.602.41" />
                    
Directory.Packages.props
<PackageReference Include="EasilyNET.WebCore.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 EasilyNET.WebCore.Swagger --version 4.25.602.41
                    
#r "nuget: EasilyNET.WebCore.Swagger, 4.25.602.41"
                    
#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=EasilyNET.WebCore.Swagger&version=4.25.602.41
                    
Install EasilyNET.WebCore.Swagger as a Cake Addin
#tool nuget:?package=EasilyNET.WebCore.Swagger&version=4.25.602.41
                    
Install EasilyNET.WebCore.Swagger as a Cake Tool

EasilyNET.WebCore.Swagger

将 Swagger 的扩展独立出来,避免 WebCore 的过度依赖.

  • 新增 Swagger 页面参数忽略.比如某些默认参数不需要调用者传入,并且也不希望他看见
  • 接口隐藏,或者控制器隐藏

添加默认值显示 代码示例

  • 在 Swagger 文档中给需要 Authorize 的接口添加 🔒

最新变化

  • SwaggerIgnoreAttribute 由于官方已经提供了同名特性,所以这里删除相关代码.

可用特性

  • ApiGroupAttribute 对控制器进行分组.便于将特有的功能分到一个组方便管理.
  • HiddenApiAttribute 隐藏控制器或者单个接口.
  • SwaggerIgnoreAttribute 忽略接口参数或者传入实体的属性 代码示例

如何使用?

// 添加 Swagger 服务

builder.Services.AddSwaggerGen(c =>
{
    // 这里使用EasilyNET提供的扩展配置.
    c.EasilySwaggerGenOptions();
    // 配置认证方式
    c.AddSecurityDefinition("Bearer", new()
    {
        Description = "JWT Authorization header using the Bearer scheme. Example: \"Authorization: Bearer {token}\"",
        Name = "Authorization",
        In = ParameterLocation.Header,
        Type = SecuritySchemeType.ApiKey,
        Scheme = "Bearer"
    });
});

...
// 注册 Swagger 中间件
app.UseEasilySwaggerUI();
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 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 is compatible.  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.

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
4.25.609.190 24 6/9/2025
4.25.411.142 141 4/11/2025
4.25.409.92 164 4/9/2025
4.25.403.133 162 4/3/2025
4.25.319.113 153 3/19/2025
4.25.312.103 162 3/12/2025
4.25.227.135 106 2/27/2025
4.25.221.115 105 2/21/2025
4.25.212.95 109 2/12/2025
4.25.211.140 112 2/11/2025
4.25.124.223 105 1/24/2025
4.25.116.110 90 1/16/2025
4.25.115.121 63 1/15/2025
4.25.114.172 98 1/14/2025
4.25.109.111 93 1/9/2025
4.25.108.182 91 1/8/2025
4.25.108.160 99 1/8/2025
4.25.1.1 118 1/1/2025
3.24.1224.141 97 12/24/2024
3.24.1216.116 122 12/16/2024
3.24.1206.100 112 12/6/2024
3.24.1205.171 116 12/5/2024
3.24.1202.150 105 12/2/2024
3.24.1126.231 105 11/26/2024
3.24.1126.172 108 11/26/2024
3.24.1126.114 101 11/26/2024
3.24.1126.104 97 11/26/2024
3.24.1125.181 89 11/25/2024
3.24.1125.104 105 11/25/2024
3.24.1121.183 115 11/21/2024
3.24.1120.183 109 11/20/2024
3.24.1119.31 108 11/18/2024
3.24.1115.143 91 11/15/2024
3.24.1113.100 106 11/13/2024
3.24.1112.125 117 11/12/2024
3.24.1107.140 105 11/7/2024
3.24.1107.54 106 11/7/2024
3.24.1107.34 103 11/7/2024
3.24.1105.111 109 11/5/2024
3.24.1103.31 111 11/2/2024
3.24.1103 109 11/2/2024
3.24.1031.135 104 10/31/2024
3.24.1031.112 97 10/31/2024
3.24.1031.104 99 10/31/2024
3.24.1029.142 120 10/29/2024
3.24.1025.30 111 10/24/2024
3.24.1022.142 98 10/22/2024
3.24.1018.204 163 10/18/2024
3.24.1018.175 153 10/18/2024
3.24.1018.166 153 10/18/2024
3.24.1018.93 158 10/18/2024
3.24.1017.42 106 10/16/2024
3.24.1016.161 102 10/16/2024
3.24.1015.231 112 10/15/2024
3.24.1015.14 104 10/14/2024
3.24.1012.114 111 10/12/2024
3.24.1009.115 116 10/9/2024
3.24.1008.160 98 10/8/2024
3.24.1008.133 104 10/8/2024
3.24.1007.185 97 10/7/2024
3.24.1003.33 110 10/2/2024
3.24.1002.162 105 10/2/2024
3.24.929.143 105 9/29/2024
3.24.929.141 137 9/29/2024
3.24.929.131 106 9/29/2024
3.24.929.122 108 9/29/2024
3.24.926.184 115 9/26/2024
3.24.926.182 104 9/26/2024
3.24.926.175 113 9/26/2024
3.24.924.160 103 9/24/2024
3.24.924.133 128 9/24/2024
3.24.924.124 106 9/24/2024
3.24.924.10 120 9/23/2024
3.24.924.1 104 9/23/2024
3.24.923.234 113 9/23/2024
3.24.923.232 111 9/23/2024
3.24.923.155 114 9/23/2024
3.24.919.92 117 9/19/2024
3.24.914.125 139 9/14/2024
3.24.914.115 127 9/14/2024
3.24.914.111 146 9/14/2024
3.24.911.95 126 9/11/2024
3.24.908.215 122 9/8/2024
3.24.904.200 119 9/4/2024
3.24.828.163 140 8/28/2024
3.24.820.173 143 8/20/2024
3.24.814.92 137 8/14/2024
3.24.812.115 159 8/12/2024
3.24.802.100 135 8/2/2024
3.24.801.162 107 8/1/2024
3.24.801.160 129 8/1/2024
3.24.730.164 94 7/30/2024
3.24.730.91 101 7/30/2024
3.24.724.91 96 7/24/2024
3.24.718.105 149 7/18/2024
3.24.716.95 123 7/16/2024
3.24.712.94 119 7/12/2024
3.24.710.14 125 7/9/2024
3.24.709.105 137 7/9/2024
3.24.704.94 143 7/4/2024
3.24.701.90 129 7/1/2024
3.24.628.114 132 6/28/2024
3.24.627.145 125 6/27/2024
3.24.620.160 134 6/20/2024
3.24.613.115 129 6/13/2024
3.24.612.95 112 6/12/2024
3.24.528.90 126 5/28/2024
3.24.522.84 142 5/22/2024
3.24.512.213 110 5/12/2024
3.24.508.112 133 5/8/2024
2.2024.428.71 129 4/28/2024
2.2024.427.1128 139 4/27/2024
2.2.72 148 4/14/2024
2.2.71 140 4/12/2024
2.2.8 115 4/26/2024
2.2.6 129 4/10/2024
2.2.5 149 3/26/2024
2.2.4 134 3/25/2024
2.2.3 151 3/24/2024
2.2.2 174 3/21/2024
2.2.1 152 3/20/2024
2.2.0 157 3/13/2024
2.1.9 169 2/21/2024
2.1.8 130 2/18/2024
2.1.7 147 2/16/2024
2.1.6 143 2/14/2024
2.1.5 137 2/14/2024
2.1.4 162 2/9/2024
2.1.3 162 2/8/2024
2.1.2 150 2/5/2024
2.1.1.2 218 12/26/2023
2.1.1.1 170 12/26/2023
2.1.1 171 12/25/2023
2.1.0 166 12/17/2023
2.0.11 233 12/6/2023
2.0.1 220 11/15/2023
2.0.0 173 11/14/2023
1.9.1 173 11/1/2023
1.9.0 176 10/19/2023
1.9.0-preview2 316 10/12/2023
1.9.0-preview1 153 10/12/2023
1.8.9 207 10/11/2023
1.8.8 186 10/11/2023
1.8.7-rc2 157 9/21/2023
1.8.7-rc1 161 9/12/2023
1.8.6 221 8/31/2023
1.8.5 846 8/25/2023
1.8.4 197 8/24/2023
1.8.3 221 8/23/2023
1.8.2 249 8/22/2023
1.8.1 223 8/18/2023
1.8.0 194 8/15/2023
1.7.9 230 8/11/2023
1.7.8 182 8/11/2023
1.7.7 211 8/10/2023
1.7.6 202 8/9/2023
1.7.5 248 8/9/2023
1.7.4 303 8/3/2023
1.7.3 224 8/1/2023
1.7.2 206 7/31/2023
1.7.1 188 7/27/2023
1.7.0 211 7/25/2023
1.6.9 234 7/25/2023
1.6.8 204 7/24/2023
1.6.7 229 7/20/2023
1.6.6 212 7/19/2023
1.6.5 187 7/19/2023
1.6.4 202 7/17/2023
1.6.3 191 7/17/2023
1.6.2 266 7/12/2023
1.6.1 271 6/30/2023
1.6.0 192 6/26/2023
1.5.9 230 6/22/2023
1.5.8 256 6/15/2023
1.5.7.1 241 6/14/2023
1.5.7 250 6/14/2023
1.5.6.2 254 6/7/2023
1.5.6.1 225 6/7/2023
1.5.6 224 6/7/2023
1.5.5.2 276 5/26/2023
1.5.5.1 239 5/26/2023
1.5.5 241 5/26/2023
1.5.4.4 216 5/25/2023
1.5.4.3 239 5/23/2023
1.5.4.2 311 5/17/2023
1.5.4.1 211 5/16/2023
1.5.4 301 5/11/2023
1.5.3 224 5/11/2023
1.5.2 250 5/10/2023
1.5.1 210 5/10/2023
1.5.0 259 5/6/2023
1.4.0 231 5/5/2023
1.3.9 283 4/23/2023