EasilyNET.WebCore.Swagger 4.25.114.172

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

// Install EasilyNET.WebCore.Swagger as a Cake Tool
#tool nuget:?package=EasilyNET.WebCore.Swagger&version=4.25.114.172                

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. 
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.116.110 34 3 days ago
4.25.115.121 11 4 days ago
4.25.114.172 28 5 days ago
4.25.109.111 46 10 days ago
4.25.108.182 51 11 days ago
4.25.108.160 60 11 days ago
4.25.1.1 93 18 days ago
3.24.1224.141 76 a month ago
3.24.1216.116 89 a month ago
3.24.1206.100 90 a month ago
3.24.1205.171 97 a month ago
3.24.1202.150 82 2 months ago
3.24.1126.231 84 2 months ago
3.24.1126.172 86 2 months ago
3.24.1126.114 80 2 months ago
3.24.1126.104 77 2 months ago
3.24.1125.181 68 2 months ago
3.24.1125.104 84 2 months ago
3.24.1121.183 90 2 months ago
3.24.1120.183 88 2 months ago
3.24.1119.31 86 2 months ago
3.24.1115.143 71 2 months ago
3.24.1113.100 89 2 months ago
3.24.1112.125 96 2 months ago
3.24.1107.140 88 2 months ago
3.24.1107.54 86 2 months ago
3.24.1107.34 86 2 months ago
3.24.1105.111 92 2 months ago
3.24.1103.31 91 3 months ago
3.24.1103 89 3 months ago
3.24.1031.135 84 3 months ago
3.24.1031.112 78 3 months ago
3.24.1031.104 79 3 months ago
3.24.1029.142 101 3 months ago
3.24.1025.30 91 3 months ago
3.24.1022.142 77 3 months ago
3.24.1018.204 143 3 months ago
3.24.1018.175 135 3 months ago
3.24.1018.166 135 3 months ago
3.24.1018.93 140 3 months ago
3.24.1017.42 90 3 months ago
3.24.1016.161 88 3 months ago
3.24.1015.231 97 3 months ago
3.24.1015.14 90 3 months ago
3.24.1012.114 96 3 months ago
3.24.1009.115 96 3 months ago
3.24.1008.160 81 3 months ago
3.24.1008.133 88 3 months ago
3.24.1007.185 78 3 months ago
3.24.1003.33 92 4 months ago
3.24.1002.162 87 4 months ago
3.24.929.143 88 4 months ago
3.24.929.141 106 4 months ago
3.24.929.131 88 4 months ago
3.24.929.122 89 4 months ago
3.24.926.184 99 4 months ago
3.24.926.182 87 4 months ago
3.24.926.175 97 4 months ago
3.24.924.160 82 4 months ago
3.24.924.133 110 4 months ago
3.24.924.124 86 4 months ago
3.24.924.10 96 4 months ago
3.24.924.1 84 4 months ago
3.24.923.234 94 4 months ago
3.24.923.232 94 4 months ago
3.24.923.155 93 4 months ago
3.24.919.92 102 4 months ago
3.24.914.125 124 4 months ago
3.24.914.115 111 4 months ago
3.24.914.111 131 4 months ago
3.24.911.95 112 4 months ago
3.24.908.215 106 4 months ago
3.24.904.200 104 4 months ago
3.24.828.163 124 5 months ago
3.24.820.173 127 5 months ago
3.24.814.92 119 5 months ago
3.24.812.115 140 5 months ago
3.24.802.100 110 6 months ago
3.24.801.162 90 6 months ago
3.24.801.160 110 6 months ago
3.24.730.164 78 6 months ago
3.24.730.91 84 6 months ago
3.24.724.91 80 6 months ago
3.24.718.105 126 6 months ago
3.24.716.95 105 6 months ago
3.24.712.94 100 6 months ago
3.24.710.14 110 6 months ago
3.24.709.105 122 6 months ago
3.24.704.94 124 7 months ago
3.24.701.90 111 7 months ago
3.24.628.114 114 7 months ago
3.24.627.145 109 7 months ago
3.24.620.160 117 7 months ago
3.24.613.115 110 7 months ago
3.24.612.95 97 7 months ago
3.24.528.90 110 8 months ago
3.24.522.84 126 8 months ago
3.24.512.213 95 8 months ago
3.24.508.112 117 8 months ago
2.2024.428.71 113 9 months ago
2.2024.427.1128 123 9 months ago
2.2.72 134 9 months ago
2.2.71 127 9 months ago
2.2.8 101 9 months ago
2.2.6 113 9 months ago
2.2.5 133 10 months ago
2.2.4 120 10 months ago
2.2.3 134 10 months ago
2.2.2 158 10 months ago
2.2.1 136 3/20/2024
2.2.0 138 3/13/2024
2.1.9 151 2/21/2024
2.1.8 112 2/18/2024
2.1.7 126 2/16/2024
2.1.6 130 2/14/2024
2.1.5 123 2/14/2024
2.1.4 149 2/9/2024
2.1.3 147 2/8/2024
2.1.2 136 2/5/2024
2.1.1.2 206 12/26/2023
2.1.1.1 157 12/26/2023
2.1.1 157 12/25/2023
2.1.0 152 12/17/2023
2.0.11 228 12/6/2023
2.0.1 215 11/15/2023
2.0.0 167 11/14/2023
1.9.1 167 11/1/2023
1.9.0 168 10/19/2023
1.9.0-preview2 294 10/12/2023
1.9.0-preview1 150 10/12/2023
1.8.9 201 10/11/2023
1.8.8 174 10/11/2023
1.8.7-rc2 154 9/21/2023
1.8.7-rc1 156 9/12/2023
1.8.6 212 8/31/2023
1.8.5 829 8/25/2023
1.8.4 188 8/24/2023
1.8.3 212 8/23/2023
1.8.2 241 8/22/2023
1.8.1 213 8/18/2023
1.8.0 185 8/15/2023
1.7.9 215 8/11/2023
1.7.8 173 8/11/2023
1.7.7 201 8/10/2023
1.7.6 192 8/9/2023
1.7.5 239 8/9/2023
1.7.4 296 8/3/2023
1.7.3 214 8/1/2023
1.7.2 197 7/31/2023
1.7.1 173 7/27/2023
1.7.0 201 7/25/2023
1.6.9 225 7/25/2023
1.6.8 196 7/24/2023
1.6.7 219 7/20/2023
1.6.6 200 7/19/2023
1.6.5 176 7/19/2023
1.6.4 192 7/17/2023
1.6.3 181 7/17/2023
1.6.2 255 7/12/2023
1.6.1 262 6/30/2023
1.6.0 182 6/26/2023
1.5.9 219 6/22/2023
1.5.8 242 6/15/2023
1.5.7.1 226 6/14/2023
1.5.7 235 6/14/2023
1.5.6.2 237 6/7/2023
1.5.6.1 207 6/7/2023
1.5.6 207 6/7/2023
1.5.5.2 259 5/26/2023
1.5.5.1 223 5/26/2023
1.5.5 228 5/26/2023
1.5.4.4 200 5/25/2023
1.5.4.3 223 5/23/2023
1.5.4.2 294 5/17/2023
1.5.4.1 192 5/16/2023
1.5.4 284 5/11/2023
1.5.3 201 5/11/2023
1.5.2 231 5/10/2023
1.5.1 193 5/10/2023
1.5.0 241 5/6/2023
1.4.0 214 5/5/2023
1.3.9 265 4/23/2023