Wlniao.OpenApi
1.0.6
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 Wlniao.OpenApi --version 1.0.6
NuGet\Install-Package Wlniao.OpenApi -Version 1.0.6
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="Wlniao.OpenApi" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Wlniao.OpenApi --version 1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Wlniao.OpenApi, 1.0.6"
#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 Wlniao.OpenApi as a Cake Addin #addin nuget:?package=Wlniao.OpenApi&version=1.0.6 // Install Wlniao.OpenApi as a Cake Tool #tool nuget:?package=Wlniao.OpenApi&version=1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
xcore
Wlniao.OpenApi for .NET CORE
License
Add Package
dotnet add package Wlniao.OpenApi
Usage
注册Swagger服务
builder.Services.AddSwaggerExtend(new System.Collections.Generic.List<ApiGroupInfo> {
new ApiGroupInfo { Name = "Service", Title = "对外开放服务接口" },
new ApiGroupInfo { Name = "Control", Title = "内部管理服务接口" }
});
配置前端终结点
app.UseKnife4UI(o =>
{
o.RoutePrefix = "docs";
ApiGroupInfo.GroupInfos.ForEach(group => { o.SwaggerEndpoint("../swagger" + group.ApiUrl, group.Title); });
});
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- IGeekFan.AspNetCore.Knife4jUI (>= 0.0.16)
- Microsoft.OpenApi (>= 1.6.14)
- Swashbuckle.AspNetCore.SwaggerGen (>= 6.6.2)
- Wlniao.AspNetCore (>= 8.0.30)
- Wlniao.XCore (>= 8.0.26)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.