Wlniao.OpenApi 1.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package Wlniao.OpenApi --version 1.0.8                
NuGet\Install-Package Wlniao.OpenApi -Version 1.0.8                
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.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Wlniao.OpenApi --version 1.0.8                
#r "nuget: Wlniao.OpenApi, 1.0.8"                
#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.8

// Install Wlniao.OpenApi as a Cake Tool
#tool nuget:?package=Wlniao.OpenApi&version=1.0.8                

xcore

Wlniao.OpenApi for .NET CORE

License

GitHub License
Package Version Pull Count

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 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.

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
1.0.10 149 9/1/2024
1.0.9 117 8/31/2024
1.0.8 94 8/30/2024
1.0.7 99 8/27/2024
1.0.6 115 8/26/2024
1.0.5 79 7/10/2024
1.0.4 113 6/29/2024
1.0.3 99 6/29/2024
1.0.2 93 6/13/2024
1.0.1 94 6/12/2024
1.0.0 93 6/12/2024