RuoVea.ExSwagger
5.0.0.2
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 RuoVea.ExSwagger --version 5.0.0.2
NuGet\Install-Package RuoVea.ExSwagger -Version 5.0.0.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="RuoVea.ExSwagger" Version="5.0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RuoVea.ExSwagger --version 5.0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RuoVea.ExSwagger, 5.0.0.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.
// Install RuoVea.ExSwagger as a Cake Addin #addin nuget:?package=RuoVea.ExSwagger&version=5.0.0.2 // Install RuoVea.ExSwagger as a Cake Tool #tool nuget:?package=RuoVea.ExSwagger&version=5.0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RuoVea.ExSwagger
介绍
Swagger拓展插件 只需要添加该插件便可轻松使用 Swagger 使用方式.支持简体中文、繁体中文、粤语、日语、法语、英语.
语言I18n获取:Language.I18n
services.AddSwaggerSetup();
app.UseSwaggerMiddle(builder.Environment);
使用示例
builder.Services.AddSwaggerSetup();
app.UseSwaggerMiddle(builder.Environment);
配置文件
"$schema": "https://gitee.com/starry123/ruovea-extend/blob/NetCore/NetCore/RuoVea.ExSwagger/RuoVea.ExSwagger/ExSwagger.json",
"Swagger": {
"ClientId": null,
"UseKnife4jUI": true,
"VirtualPath": null, /*配置UI地址(处理二级虚拟目录)路径配置,设置为空,表示直接访问该文件*/
"DocExpansionState": 1, // 0 List、1 Full、3 None
"IsMiniProfile": false, //是否启用 MiniProfile
"WithProxy": false, //解决 Swagger 被代理问题
"Title": "API 文档",
"ApiUrl": null, /*api 地址*/
"ContactName": "xxx公司",
"ContactEmail": "ruovea@foxmail.com",
"ContactUrl": null,
"LicenseName": null,
"LicenseUrl": null,
"TermsOfService": "https://www.ruovea.com",
"Description": "Api接口采用token+签名验证,在使用swagger测试接口时须先获取Token;api-version接口版本号,默认为1.0,可以不填写,其他版本必须填写。",
"ApiVersions": [
{
"Title": "基础模块",
"Version": "v0"
},
{
"Title": "系统基础模块",
"Version": "v1"
}
],
/* 文档开启登录查看 生产环境默认开启 */
"LoginInfo": {
"Enabled": false, // 是否开启Swagger登录
"EnableOnProduction": false, // 是否生产环境开启Swagger登录
"CheckUrl": "/api/swagger/checkUrl",
"SubmitUrl": "/api/swagger/submitUrl"
}
//"Servers": [
// {
// "Url": "",
// "Description": ""
// }
//]
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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.
-
net5.0
- IGeekFan.AspNetCore.Knife4jUI (>= 0.0.16)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- RuoVea.ExConfig (>= 5.0.19.1)
- Swashbuckle.AspNetCore.Filters (>= 8.0.2)
- Swashbuckle.AspNetCore.SwaggerGen (>= 6.7.0)
- Swashbuckle.AspNetCore.SwaggerUI (>= 6.7.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 |
---|---|---|
8.0.0.2 | 84 | 11/1/2024 |
8.0.0.1 | 83 | 10/28/2024 |
8.0.0 | 98 | 8/28/2024 |
7.0.0.2 | 79 | 11/1/2024 |
7.0.0.1 | 83 | 10/28/2024 |
7.0.0 | 98 | 8/28/2024 |
6.0.3.5 | 83 | 11/1/2024 |
6.0.3.4 | 86 | 10/28/2024 |
6.0.3.3 | 150 | 8/14/2024 |
6.0.3.2 | 120 | 8/13/2024 |
6.0.3.1 | 116 | 8/13/2024 |
6.0.3 | 102 | 8/13/2024 |
6.0.2.6 | 105 | 7/23/2024 |
6.0.2.5 | 117 | 3/13/2024 |
6.0.2.4 | 131 | 2/27/2024 |
6.0.2.3 | 129 | 2/22/2024 |
6.0.2.2 | 130 | 1/27/2024 |
6.0.2.1 | 104 | 1/27/2024 |
6.0.2 | 263 | 3/11/2023 |
6.0.1 | 405 | 9/8/2022 |
6.0.0 | 437 | 3/24/2022 |
5.0.0.2 | 77 | 11/1/2024 |
5.0.0.1 | 76 | 10/28/2024 |
5.0.0 | 421 | 3/24/2022 |