EasilyNET.WebCore.Swagger
4.25.716.42
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package EasilyNET.WebCore.Swagger --version 4.25.716.42
NuGet\Install-Package EasilyNET.WebCore.Swagger -Version 4.25.716.42
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.716.42" />
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.716.42" />
<PackageReference Include="EasilyNET.WebCore.Swagger" />
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.716.42
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EasilyNET.WebCore.Swagger, 4.25.716.42"
#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.
#:package EasilyNET.WebCore.Swagger@4.25.716.42
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EasilyNET.WebCore.Swagger&version=4.25.716.42
#tool nuget:?package=EasilyNET.WebCore.Swagger&version=4.25.716.42
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. 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.
-
net10.0
- EasilyNET.Core (>= 4.25.716.42)
- Swashbuckle.AspNetCore.SwaggerGen (>= 9.0.3)
- Swashbuckle.AspNetCore.SwaggerUI (>= 9.0.3)
-
net8.0
- EasilyNET.Core (>= 4.25.716.42)
- Swashbuckle.AspNetCore.SwaggerGen (>= 9.0.3)
- Swashbuckle.AspNetCore.SwaggerUI (>= 9.0.3)
-
net9.0
- EasilyNET.Core (>= 4.25.716.42)
- Swashbuckle.AspNetCore.SwaggerGen (>= 9.0.3)
- Swashbuckle.AspNetCore.SwaggerUI (>= 9.0.3)
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.724.1 | 0 | 7/23/2025 |
4.25.720.80 | 15 | 7/20/2025 |
4.25.716.42 | 108 | 7/15/2025 |
4.25.617.153 | 139 | 6/17/2025 |
4.25.616.190 | 132 | 6/16/2025 |
4.25.616.182 | 132 | 6/16/2025 |
4.25.613.111 | 276 | 6/13/2025 |
4.25.609.190 | 323 | 6/9/2025 |
2.2.5 | 156 | 3/26/2024 |
2.2.4 | 140 | 3/25/2024 |
2.2.3 | 163 | 3/24/2024 |
2.2.2 | 183 | 3/21/2024 |
2.2.1 | 159 | 3/20/2024 |
2.2.0 | 167 | 3/13/2024 |
2.1.9 | 180 | 2/21/2024 |
2.1.8 | 137 | 2/18/2024 |
2.1.7 | 155 | 2/16/2024 |
2.1.6 | 149 | 2/14/2024 |
2.1.5 | 148 | 2/14/2024 |
2.1.4 | 169 | 2/9/2024 |
2.1.3 | 171 | 2/8/2024 |
2.1.2 | 157 | 2/5/2024 |
2.1.1.2 | 227 | 12/26/2023 |
2.1.1.1 | 177 | 12/26/2023 |
2.1.1 | 177 | 12/25/2023 |
2.1.0 | 174 | 12/17/2023 |
2.0.11 | 239 | 12/6/2023 |
2.0.1 | 225 | 11/15/2023 |
2.0.0 | 181 | 11/14/2023 |
1.9.1 | 178 | 11/1/2023 |
1.9.0 | 186 | 10/19/2023 |
1.9.0-preview2 | 329 | 10/12/2023 |
1.9.0-preview1 | 165 | 10/12/2023 |
1.8.9 | 221 | 10/11/2023 |
1.8.8 | 198 | 10/11/2023 |
1.8.7-rc2 | 169 | 9/21/2023 |
1.8.7-rc1 | 173 | 9/12/2023 |
1.8.6 | 233 | 8/31/2023 |
1.8.5 | 866 | 8/25/2023 |
1.8.4 | 212 | 8/24/2023 |
1.8.3 | 235 | 8/23/2023 |
1.8.2 | 262 | 8/22/2023 |
1.8.1 | 237 | 8/18/2023 |
1.8.0 | 209 | 8/15/2023 |
1.7.9 | 247 | 8/11/2023 |
1.7.8 | 196 | 8/11/2023 |
1.7.7 | 225 | 8/10/2023 |
1.7.6 | 219 | 8/9/2023 |
1.7.5 | 269 | 8/9/2023 |
1.7.4 | 319 | 8/3/2023 |
1.7.3 | 239 | 8/1/2023 |
1.7.2 | 224 | 7/31/2023 |
1.7.1 | 205 | 7/27/2023 |
1.7.0 | 228 | 7/25/2023 |
1.6.9 | 250 | 7/25/2023 |
1.6.8 | 223 | 7/24/2023 |
1.6.7 | 248 | 7/20/2023 |
1.6.6 | 228 | 7/19/2023 |
1.6.5 | 203 | 7/19/2023 |
1.6.4 | 218 | 7/17/2023 |
1.6.3 | 207 | 7/17/2023 |
1.6.2 | 282 | 7/12/2023 |
1.6.1 | 288 | 6/30/2023 |
1.6.0 | 207 | 6/26/2023 |
1.5.9 | 249 | 6/22/2023 |
1.5.8 | 270 | 6/15/2023 |
1.5.7.1 | 256 | 6/14/2023 |
1.5.7 | 265 | 6/14/2023 |
1.5.6.2 | 270 | 6/7/2023 |
1.5.6.1 | 241 | 6/7/2023 |
1.5.6 | 241 | 6/7/2023 |
1.5.5.2 | 291 | 5/26/2023 |
1.5.5.1 | 255 | 5/26/2023 |
1.5.5 | 261 | 5/26/2023 |
1.5.4.4 | 236 | 5/25/2023 |
1.5.4.3 | 254 | 5/23/2023 |
1.5.4.2 | 327 | 5/17/2023 |
1.5.4.1 | 228 | 5/16/2023 |
1.5.4 | 318 | 5/11/2023 |
1.5.3 | 241 | 5/11/2023 |
1.5.2 | 269 | 5/10/2023 |
1.5.1 | 229 | 5/10/2023 |
1.5.0 | 275 | 5/6/2023 |
1.4.0 | 246 | 5/5/2023 |
1.3.9 | 298 | 4/23/2023 |