RuoVea.ExSwagger
8.0.0.2
dotnet add package RuoVea.ExSwagger --version 8.0.0.2
NuGet\Install-Package RuoVea.ExSwagger -Version 8.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="8.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 8.0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RuoVea.ExSwagger, 8.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=8.0.0.2 // Install RuoVea.ExSwagger as a Cake Tool #tool nuget:?package=RuoVea.ExSwagger&version=8.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 | 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.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- RuoVea.ExConfig (>= 6.0.1.6)
- Swashbuckle.AspNetCore.Filters (>= 6.1.0)
- Swashbuckle.AspNetCore.SwaggerGen (>= 6.7.0)
- Swashbuckle.AspNetCore.SwaggerUI (>= 6.7.0)
- System.Security.Cryptography.Pkcs (>= 6.0.4)
- System.Security.Cryptography.Xml (>= 6.0.1)
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 | 70 | 11/1/2024 |
8.0.0.1 | 75 | 10/28/2024 |
8.0.0 | 92 | 8/28/2024 |
7.0.0.2 | 65 | 11/1/2024 |
7.0.0.1 | 76 | 10/28/2024 |
7.0.0 | 93 | 8/28/2024 |
6.0.3.5 | 71 | 11/1/2024 |
6.0.3.4 | 78 | 10/28/2024 |
6.0.3.3 | 143 | 8/14/2024 |
6.0.3.2 | 115 | 8/13/2024 |
6.0.3.1 | 111 | 8/13/2024 |
6.0.3 | 97 | 8/13/2024 |
6.0.2.6 | 100 | 7/23/2024 |
6.0.2.5 | 112 | 3/13/2024 |
6.0.2.4 | 126 | 2/27/2024 |
6.0.2.3 | 120 | 2/22/2024 |
6.0.2.2 | 125 | 1/27/2024 |
6.0.2.1 | 99 | 1/27/2024 |
6.0.2 | 258 | 3/11/2023 |
6.0.1 | 400 | 9/8/2022 |
6.0.0 | 432 | 3/24/2022 |
5.0.0.2 | 65 | 11/1/2024 |
5.0.0.1 | 69 | 10/28/2024 |
5.0.0 | 416 | 3/24/2022 |