EasilyNET.WebCore.Swagger 1.5.6.2

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

EasilyNET.WebCore.Swagger

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

如何使用?

// 添加 Swagger 服务
private const string name = $"{title}-{version}";

private const string version = "v1";
private const string title = "WebApi.Test";

builder.Services.AddSwaggerGen(c =>
{
    // 配置默认的文档信息
    c.SwaggerDoc(name, new()
    {
        Title = title,
        Version = version,
        Description = "Console.WriteLine(\"🐂🍺\")"
    });
    // 这里使用EasilyNET提供的扩展配置.
    c.EasilySwaggerGenOptions(name);
    // 配置认证方式
    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.UseSwagger().UseSwaggerUI(c =>
{
    // 配置默认文档
    c.SwaggerEndpoint($"/swagger/{name}/swagger.json", $"{title} {version}");
    // 使用EasilyNET提供的扩展配置
    c.EasilySwaggerUIOptions();
});

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 is compatible.  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 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 was computed.  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.506.150 31 3 days ago
4.25.429.162 131 10 days ago
4.25.429.103 155 11 days ago
4.25.411.142 128 a month ago
4.25.409.92 158 a month ago
4.25.403.133 156 a month ago
4.25.319.113 147 2 months ago
4.25.312.103 156 2 months ago
4.25.227.135 100 2 months ago
4.25.221.115 99 3 months ago
4.25.212.95 102 3 months ago
4.25.211.140 105 3 months ago
4.25.124.223 100 3 months ago
4.25.116.110 84 4 months ago
4.25.115.121 58 4 months ago
4.25.114.172 90 4 months ago
4.25.109.111 88 4 months ago
4.25.108.182 86 4 months ago
4.25.108.160 94 4 months ago
4.25.1.1 112 4 months ago
3.24.1224.141 92 5 months ago
3.24.1216.116 116 5 months ago
3.24.1206.100 106 5 months ago
3.24.1205.171 110 5 months ago
3.24.1202.150 98 5 months ago
3.24.1126.231 99 5 months ago
3.24.1126.172 99 5 months ago
3.24.1126.114 94 5 months ago
3.24.1126.104 91 5 months ago
3.24.1125.181 82 5 months ago
3.24.1125.104 99 5 months ago
3.24.1121.183 109 6 months ago
3.24.1120.183 102 6 months ago
3.24.1119.31 102 6 months ago
3.24.1115.143 84 6 months ago
3.24.1113.100 100 6 months ago
3.24.1112.125 111 6 months ago
3.24.1107.140 99 6 months ago
3.24.1107.54 99 6 months ago
3.24.1107.34 97 6 months ago
3.24.1105.111 103 6 months ago
3.24.1103.31 104 6 months ago
3.24.1103 103 6 months ago
3.24.1031.135 98 6 months ago
3.24.1031.112 91 6 months ago
3.24.1031.104 93 6 months ago
3.24.1029.142 115 6 months ago
3.24.1025.30 106 6 months ago
3.24.1022.142 92 7 months ago
3.24.1018.204 158 7 months ago
3.24.1018.175 148 7 months ago
3.24.1018.166 147 7 months ago
3.24.1018.93 153 7 months ago
3.24.1017.42 100 7 months ago
3.24.1016.161 97 7 months ago
3.24.1015.231 107 7 months ago
3.24.1015.14 99 7 months ago
3.24.1012.114 106 7 months ago
3.24.1009.115 110 7 months ago
3.24.1008.160 92 7 months ago
3.24.1008.133 99 7 months ago
3.24.1007.185 91 7 months ago
3.24.1003.33 105 7 months ago
3.24.1002.162 99 7 months ago
3.24.929.143 100 7 months ago
3.24.929.141 132 7 months ago
3.24.929.131 100 7 months ago
3.24.929.122 102 7 months ago
3.24.926.184 110 7 months ago
3.24.926.182 99 7 months ago
3.24.926.175 108 7 months ago
3.24.924.160 98 8 months ago
3.24.924.133 123 8 months ago
3.24.924.124 101 8 months ago
3.24.924.10 114 8 months ago
3.24.924.1 99 8 months ago
3.24.923.234 108 8 months ago
3.24.923.232 105 8 months ago
3.24.923.155 109 8 months ago
3.24.919.92 112 8 months ago
3.24.914.125 134 8 months ago
3.24.914.115 121 8 months ago
3.24.914.111 141 8 months ago
3.24.911.95 121 8 months ago
3.24.908.215 117 8 months ago
3.24.904.200 114 8 months ago
3.24.828.163 135 8 months ago
3.24.820.173 138 9 months ago
3.24.814.92 132 9 months ago
3.24.812.115 153 9 months ago
3.24.802.100 129 9 months ago
3.24.801.162 102 9 months ago
3.24.801.160 124 9 months ago
3.24.730.164 89 9 months ago
3.24.730.91 96 9 months ago
3.24.724.91 91 10 months ago
3.24.718.105 143 10 months ago
3.24.716.95 117 10 months ago
3.24.712.94 114 10 months ago
3.24.710.14 120 10 months ago
3.24.709.105 132 7/9/2024
3.24.704.94 135 7/4/2024
3.24.701.90 124 7/1/2024
3.24.628.114 127 6/28/2024
3.24.627.145 119 6/27/2024
3.24.620.160 128 6/20/2024
3.24.613.115 120 6/13/2024
3.24.612.95 106 6/12/2024
3.24.528.90 121 5/28/2024
3.24.522.84 137 5/22/2024
3.24.512.213 104 5/12/2024
3.24.508.112 128 5/8/2024
2.2024.428.71 124 4/28/2024
2.2024.427.1128 134 4/27/2024
2.2.72 143 4/14/2024
2.2.71 135 4/12/2024
2.2.8 109 4/26/2024
2.2.6 124 4/10/2024
2.2.5 143 3/26/2024
2.2.4 128 3/25/2024
2.2.3 145 3/24/2024
2.2.2 168 3/21/2024
2.2.1 146 3/20/2024
2.2.0 151 3/13/2024
2.1.9 164 2/21/2024
2.1.8 125 2/18/2024
2.1.7 141 2/16/2024
2.1.6 138 2/14/2024
2.1.5 132 2/14/2024
2.1.4 157 2/9/2024
2.1.3 156 2/8/2024
2.1.2 145 2/5/2024
2.1.1.2 213 12/26/2023
2.1.1.1 165 12/26/2023
2.1.1 166 12/25/2023
2.1.0 161 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 169 11/1/2023
1.9.0 172 10/19/2023
1.9.0-preview2 314 10/12/2023
1.9.0-preview1 151 10/12/2023
1.8.9 204 10/11/2023
1.8.8 182 10/11/2023
1.8.7-rc2 155 9/21/2023
1.8.7-rc1 159 9/12/2023
1.8.6 215 8/31/2023
1.8.5 841 8/25/2023
1.8.4 192 8/24/2023
1.8.3 216 8/23/2023
1.8.2 244 8/22/2023
1.8.1 217 8/18/2023
1.8.0 188 8/15/2023
1.7.9 224 8/11/2023
1.7.8 175 8/11/2023
1.7.7 205 8/10/2023
1.7.6 195 8/9/2023
1.7.5 241 8/9/2023
1.7.4 299 8/3/2023
1.7.3 218 8/1/2023
1.7.2 200 7/31/2023
1.7.1 181 7/27/2023
1.7.0 205 7/25/2023
1.6.9 228 7/25/2023
1.6.8 198 7/24/2023
1.6.7 223 7/20/2023
1.6.6 206 7/19/2023
1.6.5 181 7/19/2023
1.6.4 195 7/17/2023
1.6.3 184 7/17/2023
1.6.2 260 7/12/2023
1.6.1 266 6/30/2023
1.6.0 185 6/26/2023
1.5.9 224 6/22/2023
1.5.8 249 6/15/2023
1.5.7.1 234 6/14/2023
1.5.7 242 6/14/2023
1.5.6.2 246 6/7/2023
1.5.6.1 217 6/7/2023
1.5.6 216 6/7/2023
1.5.5.2 269 5/26/2023
1.5.5.1 232 5/26/2023
1.5.5 234 5/26/2023
1.5.4.4 209 5/25/2023
1.5.4.3 232 5/23/2023
1.5.4.2 304 5/17/2023
1.5.4.1 203 5/16/2023
1.5.4 294 5/11/2023
1.5.3 217 5/11/2023
1.5.2 242 5/10/2023
1.5.1 203 5/10/2023
1.5.0 252 5/6/2023
1.4.0 224 5/5/2023
1.3.9 276 4/23/2023