EasilyNET.WebCore.Swagger
4.25.319.113
dotnet add package EasilyNET.WebCore.Swagger --version 4.25.319.113
NuGet\Install-Package EasilyNET.WebCore.Swagger -Version 4.25.319.113
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.319.113" />
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.319.113
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EasilyNET.WebCore.Swagger, 4.25.319.113"
#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.319.113 // Install EasilyNET.WebCore.Swagger as a Cake Tool #tool nuget:?package=EasilyNET.WebCore.Swagger&version=4.25.319.113
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- EasilyNET.Core (>= 4.25.319.113)
- Swashbuckle.AspNetCore.SwaggerGen (>= 8.0.0)
- Swashbuckle.AspNetCore.SwaggerUI (>= 8.0.0)
-
net8.0
- EasilyNET.Core (>= 4.25.319.113)
- Swashbuckle.AspNetCore.SwaggerGen (>= 8.0.0)
- Swashbuckle.AspNetCore.SwaggerUI (>= 8.0.0)
-
net9.0
- EasilyNET.Core (>= 4.25.319.113)
- Swashbuckle.AspNetCore.SwaggerGen (>= 8.0.0)
- Swashbuckle.AspNetCore.SwaggerUI (>= 8.0.0)
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.319.113 | 31 | 2 days ago |
4.25.312.103 | 144 | 9 days ago |
4.25.227.135 | 90 | 22 days ago |
4.25.221.115 | 86 | a month ago |
4.25.212.95 | 91 | a month ago |
4.25.211.140 | 95 | a month ago |
4.25.124.223 | 91 | 2 months ago |
4.25.116.110 | 74 | 2 months ago |
4.25.115.121 | 51 | 2 months ago |
4.25.114.172 | 79 | 2 months ago |
4.25.109.111 | 80 | 2 months ago |
4.25.108.182 | 75 | 2 months ago |
4.25.108.160 | 83 | 2 months ago |
4.25.1.1 | 103 | 3 months ago |
3.24.1224.141 | 84 | 3 months ago |
3.24.1216.116 | 102 | 3 months ago |
3.24.1206.100 | 98 | 3 months ago |
3.24.1205.171 | 102 | 4 months ago |
3.24.1202.150 | 89 | 4 months ago |
3.24.1126.231 | 89 | 4 months ago |
3.24.1126.172 | 91 | 4 months ago |
3.24.1126.114 | 85 | 4 months ago |
3.24.1126.104 | 83 | 4 months ago |
3.24.1125.181 | 73 | 4 months ago |
3.24.1125.104 | 90 | 4 months ago |
3.24.1121.183 | 101 | 4 months ago |
3.24.1120.183 | 93 | 4 months ago |
3.24.1119.31 | 94 | 4 months ago |
3.24.1115.143 | 77 | 4 months ago |
3.24.1113.100 | 94 | 4 months ago |
3.24.1112.125 | 101 | 4 months ago |
3.24.1107.140 | 92 | 4 months ago |
3.24.1107.54 | 91 | 4 months ago |
3.24.1107.34 | 90 | 4 months ago |
3.24.1105.111 | 95 | 5 months ago |
3.24.1103.31 | 95 | 5 months ago |
3.24.1103 | 95 | 5 months ago |
3.24.1031.135 | 89 | 5 months ago |
3.24.1031.112 | 84 | 5 months ago |
3.24.1031.104 | 85 | 5 months ago |
3.24.1029.142 | 106 | 5 months ago |
3.24.1025.30 | 97 | 5 months ago |
3.24.1022.142 | 83 | 5 months ago |
3.24.1018.204 | 148 | 5 months ago |
3.24.1018.175 | 138 | 5 months ago |
3.24.1018.166 | 138 | 5 months ago |
3.24.1018.93 | 143 | 5 months ago |
3.24.1017.42 | 93 | 5 months ago |
3.24.1016.161 | 91 | 5 months ago |
3.24.1015.231 | 100 | 5 months ago |
3.24.1015.14 | 93 | 5 months ago |
3.24.1012.114 | 99 | 5 months ago |
3.24.1009.115 | 100 | 5 months ago |
3.24.1008.160 | 85 | 5 months ago |
3.24.1008.133 | 92 | 5 months ago |
3.24.1007.185 | 84 | 5 months ago |
3.24.1003.33 | 96 | 6 months ago |
3.24.1002.162 | 90 | 6 months ago |
3.24.929.143 | 92 | 6 months ago |
3.24.929.141 | 115 | 6 months ago |
3.24.929.131 | 91 | 6 months ago |
3.24.929.122 | 93 | 6 months ago |
3.24.926.184 | 102 | 6 months ago |
3.24.926.182 | 90 | 6 months ago |
3.24.926.175 | 100 | 6 months ago |
3.24.924.160 | 89 | 6 months ago |
3.24.924.133 | 114 | 6 months ago |
3.24.924.124 | 91 | 6 months ago |
3.24.924.10 | 105 | 6 months ago |
3.24.924.1 | 89 | 6 months ago |
3.24.923.234 | 99 | 6 months ago |
3.24.923.232 | 97 | 6 months ago |
3.24.923.155 | 100 | 6 months ago |
3.24.919.92 | 105 | 6 months ago |
3.24.914.125 | 127 | 6 months ago |
3.24.914.115 | 114 | 6 months ago |
3.24.914.111 | 133 | 6 months ago |
3.24.911.95 | 114 | 6 months ago |
3.24.908.215 | 109 | 6 months ago |
3.24.904.200 | 106 | 7 months ago |
3.24.828.163 | 126 | 7 months ago |
3.24.820.173 | 130 | 7 months ago |
3.24.814.92 | 122 | 7 months ago |
3.24.812.115 | 143 | 7 months ago |
3.24.802.100 | 119 | 8 months ago |
3.24.801.162 | 93 | 8 months ago |
3.24.801.160 | 111 | 8 months ago |
3.24.730.164 | 82 | 8 months ago |
3.24.730.91 | 85 | 8 months ago |
3.24.724.91 | 83 | 8 months ago |
3.24.718.105 | 135 | 8 months ago |
3.24.716.95 | 107 | 8 months ago |
3.24.712.94 | 104 | 8 months ago |
3.24.710.14 | 112 | 8 months ago |
3.24.709.105 | 124 | 8 months ago |
3.24.704.94 | 126 | 9 months ago |
3.24.701.90 | 114 | 9 months ago |
3.24.628.114 | 117 | 9 months ago |
3.24.627.145 | 111 | 9 months ago |
3.24.620.160 | 119 | 9 months ago |
3.24.613.115 | 112 | 9 months ago |
3.24.612.95 | 101 | 9 months ago |
3.24.528.90 | 113 | 10 months ago |
3.24.522.84 | 128 | 10 months ago |
3.24.512.213 | 98 | 5/12/2024 |
3.24.508.112 | 120 | 5/8/2024 |
2.2024.428.71 | 115 | 4/28/2024 |
2.2024.427.1128 | 126 | 4/27/2024 |
2.2.72 | 136 | 4/14/2024 |
2.2.71 | 129 | 4/12/2024 |
2.2.8 | 103 | 4/26/2024 |
2.2.6 | 116 | 4/10/2024 |
2.2.5 | 136 | 3/26/2024 |
2.2.4 | 122 | 3/25/2024 |
2.2.3 | 137 | 3/24/2024 |
2.2.2 | 160 | 3/21/2024 |
2.2.1 | 138 | 3/20/2024 |
2.2.0 | 142 | 3/13/2024 |
2.1.9 | 158 | 2/21/2024 |
2.1.8 | 118 | 2/18/2024 |
2.1.7 | 135 | 2/16/2024 |
2.1.6 | 131 | 2/14/2024 |
2.1.5 | 124 | 2/14/2024 |
2.1.4 | 150 | 2/9/2024 |
2.1.3 | 150 | 2/8/2024 |
2.1.2 | 138 | 2/5/2024 |
2.1.1.2 | 207 | 12/26/2023 |
2.1.1.1 | 158 | 12/26/2023 |
2.1.1 | 158 | 12/25/2023 |
2.1.0 | 153 | 12/17/2023 |
2.0.11 | 229 | 12/6/2023 |
2.0.1 | 217 | 11/15/2023 |
2.0.0 | 169 | 11/14/2023 |
1.9.1 | 168 | 11/1/2023 |
1.9.0 | 170 | 10/19/2023 |
1.9.0-preview2 | 314 | 10/12/2023 |
1.9.0-preview1 | 150 | 10/12/2023 |
1.8.9 | 202 | 10/11/2023 |
1.8.8 | 181 | 10/11/2023 |
1.8.7-rc2 | 155 | 9/21/2023 |
1.8.7-rc1 | 157 | 9/12/2023 |
1.8.6 | 213 | 8/31/2023 |
1.8.5 | 832 | 8/25/2023 |
1.8.4 | 190 | 8/24/2023 |
1.8.3 | 213 | 8/23/2023 |
1.8.2 | 243 | 8/22/2023 |
1.8.1 | 215 | 8/18/2023 |
1.8.0 | 186 | 8/15/2023 |
1.7.9 | 215 | 8/11/2023 |
1.7.8 | 174 | 8/11/2023 |
1.7.7 | 203 | 8/10/2023 |
1.7.6 | 194 | 8/9/2023 |
1.7.5 | 240 | 8/9/2023 |
1.7.4 | 297 | 8/3/2023 |
1.7.3 | 216 | 8/1/2023 |
1.7.2 | 198 | 7/31/2023 |
1.7.1 | 179 | 7/27/2023 |
1.7.0 | 202 | 7/25/2023 |
1.6.9 | 226 | 7/25/2023 |
1.6.8 | 197 | 7/24/2023 |
1.6.7 | 220 | 7/20/2023 |
1.6.6 | 203 | 7/19/2023 |
1.6.5 | 179 | 7/19/2023 |
1.6.4 | 193 | 7/17/2023 |
1.6.3 | 182 | 7/17/2023 |
1.6.2 | 257 | 7/12/2023 |
1.6.1 | 263 | 6/30/2023 |
1.6.0 | 183 | 6/26/2023 |
1.5.9 | 220 | 6/22/2023 |
1.5.8 | 246 | 6/15/2023 |
1.5.7.1 | 230 | 6/14/2023 |
1.5.7 | 239 | 6/14/2023 |
1.5.6.2 | 243 | 6/7/2023 |
1.5.6.1 | 213 | 6/7/2023 |
1.5.6 | 212 | 6/7/2023 |
1.5.5.2 | 265 | 5/26/2023 |
1.5.5.1 | 228 | 5/26/2023 |
1.5.5 | 233 | 5/26/2023 |
1.5.4.4 | 206 | 5/25/2023 |
1.5.4.3 | 228 | 5/23/2023 |
1.5.4.2 | 300 | 5/17/2023 |
1.5.4.1 | 199 | 5/16/2023 |
1.5.4 | 291 | 5/11/2023 |
1.5.3 | 207 | 5/11/2023 |
1.5.2 | 238 | 5/10/2023 |
1.5.1 | 199 | 5/10/2023 |
1.5.0 | 248 | 5/6/2023 |
1.4.0 | 220 | 5/5/2023 |
1.3.9 | 272 | 4/23/2023 |