Bing.Extensions.Swashbuckle
1.5.4
Prefix Reserved
dotnet add package Bing.Extensions.Swashbuckle --version 1.5.4
NuGet\Install-Package Bing.Extensions.Swashbuckle -Version 1.5.4
<PackageReference Include="Bing.Extensions.Swashbuckle" Version="1.5.4" />
paket add Bing.Extensions.Swashbuckle --version 1.5.4
#r "nuget: Bing.Extensions.Swashbuckle, 1.5.4"
// Install Bing.Extensions.Swashbuckle as a Cake Addin #addin nuget:?package=Bing.Extensions.Swashbuckle&version=1.5.4 // Install Bing.Extensions.Swashbuckle as a Cake Tool #tool nuget:?package=Bing.Extensions.Swashbuckle&version=1.5.4
Bing.Extensions.Swashbuckle
Bing.Extensions.Swashbuckle是扩展Swashbuckle.AspNetCore一些常用操作,便于使用以及过滤。
Nuget
Nuget | 版本号 | 说明 |
---|---|---|
Bing.Extensions.Swashbuckle |
功能
- 支持多版本分组
- 支持多API分组功能
- 支持文件上传参数
- 支持添加通用参数
- 支持自定义请求头
- 支持自定义响应头
- 支持安全请求
- 支持显示授权信息
- 支持自定义Url显示模式。首字母小写、首字母大写、全小写、全大写
- 支持显示枚举描述
- 支持Swagger文档授权登录功能
- 支持默认值设置
- 支持控制器排序
- 支持Token令牌存储
- 支持控制器方法计数
- 支持全局响应包装功能Bing.Extensions.Swashbuckle
依赖类库
使用方式
显示枚举描述
用于在请求实体与响应实体当中,显示枚举的描述信息,需要在枚举上面添加 [Description("xxx")]
特性,方可在文档中显示每个枚举的注释信息。
public enum EnumSample
{
[Description("老大")]
One = 1,
[Description("老二")]
Two = 2,
[Description("老三")]
Three = 3
}
// Startup.cs
services.AddSwaggerGen(c =>
{
...
c.ShowEnumDescription();
});
作者
简玄冰
贡献与反馈
如果你在阅读或使用Bing中任意一个代码片断时发现Bug,或有更佳实现方式,请通知我们。
为了保持代码简单,目前很多功能只建立了基本结构,细节特性未进行迁移,在后续需要时进行添加,如果你发现某个类无法满足你的需求,请通知我们。
你可以通过github的Issue或Pull Request向我们提交问题和代码,如果你更喜欢使用QQ进行交流,请加入我们的交流QQ群。
对于你提交的代码,如果我们决定采纳,可能会进行相应重构,以统一代码风格。
对于热心的同学,将会把你的名字放到贡献者名单中。
免责声明
- 虽然我们对代码已经进行高度审查,并用于自己的项目中,但依然可能存在某些未知的BUG,如果你的生产系统蒙受损失,Bing 团队不会对此负责。
- 出于成本的考虑,我们不会对已发布的API保持兼容,每当更新代码时,请注意该问题。
开源地址
https://github.com/bing-framework/Bing.Extensions.Swashbuckle
License
MIT
这意味着你可以在任意场景下使用 Bing 应用框架而不会有人找你要钱。
Bing 会尽量引入开源免费的第三方技术框架,如有意外,还请自行了解。
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. 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 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- DotNetCore.SourceLink.Environment (>= 8.0.0)
- Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer (>= 4.2.0)
- Swashbuckle.AspNetCore (>= 6.4.0)
-
.NETStandard 2.0
- DotNetCore.SourceLink.Environment (>= 8.0.0)
- Microsoft.AspNetCore.Mvc (>= 2.2.0)
- Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer (>= 4.1.0)
- Swashbuckle.AspNetCore (>= 6.4.0)
-
net5.0
- DotNetCore.SourceLink.Environment (>= 8.0.0)
- Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer (>= 5.0.0)
- Swashbuckle.AspNetCore (>= 6.4.0)
-
net6.0
- DotNetCore.SourceLink.Environment (>= 8.0.0)
- Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer (>= 5.0.0)
- Swashbuckle.AspNetCore (>= 6.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Bing.Extensions.Swashbuckle:
Repository | Stars |
---|---|
bing-framework/Bing.NetCore
Bing是基于 .net core 3.1 的框架,旨在提升团队的开发输出能力,由常用公共操作类(工具类、帮助类)、分层架构基类,第三方组件封装,第三方业务接口封装等组成。
|
Version | Downloads | Last updated |
---|---|---|
1.5.4 | 121 | 5/28/2024 |
1.5.3 | 512 | 10/25/2022 |
1.5.2 | 466 | 10/9/2022 |
1.5.1 | 498 | 9/27/2022 |
1.5.0 | 1,040 | 9/1/2022 |
1.4.0 | 565 | 4/27/2022 |
1.3.0 | 621 | 2/25/2022 |
1.2.2 | 932 | 1/21/2021 |
1.2.1 | 944 | 5/27/2020 |
1.2.0 | 651 | 5/18/2020 |
1.1.2 | 619 | 5/13/2020 |
1.1.2-preview-20200512-1 | 430 | 5/12/2020 |
1.1.1 | 608 | 5/5/2020 |
1.1.1-preview-20200314-1 | 387 | 3/14/2020 |
1.1.1-preview-20200303-1 | 451 | 3/3/2020 |
1.1.1-preview-20200227-1 | 405 | 2/27/2020 |
1.1.1-preview-20200218-1 | 454 | 2/18/2020 |
1.1.0 | 1,256 | 9/3/2019 |
1.1.0-preview-20190903-1 | 400 | 2/18/2020 |
1.0.0 | 732 | 7/19/2019 |
0.0.1-preview-20190529-3 | 500 | 5/29/2019 |
0.0.1-preview-20190529-2 | 478 | 5/29/2019 |
0.0.1-preview-20190527-2 | 470 | 5/27/2019 |
0.0.1-preview-20190527-1 | 462 | 5/27/2019 |
0.0.1-preview-20190417-1 | 659 | 4/17/2019 |
0.0.1-preview-20190116-1 | 599 | 1/16/2019 |
0.0.1-preview-20190110-1 | 739 | 1/10/2019 |
0.0.1-preview-20180919-1 | 707 | 9/19/2018 |