mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
add more metadata to swaggergen
This commit is contained in:
parent
14ee85eea2
commit
2684de0fff
@ -12,7 +12,23 @@ namespace Bit.Api.Utilities
|
||||
{
|
||||
services.AddSwaggerGen(config =>
|
||||
{
|
||||
config.SwaggerDoc("public", new Info { Title = "Bitwarden Public API", Version = "latest" });
|
||||
config.SwaggerDoc("public", new Info
|
||||
{
|
||||
Title = "Bitwarden Public API",
|
||||
Version = "latest",
|
||||
Contact = new Contact
|
||||
{
|
||||
Name = "Bitwarden Support",
|
||||
Url = "https://bitwarden.com",
|
||||
Email = "support@bitwarden.com"
|
||||
},
|
||||
Description = "The Bitwarden public APIs.",
|
||||
License = new License
|
||||
{
|
||||
Name = "GNU Affero General Public License v3.0",
|
||||
Url = "https://github.com/bitwarden/server/blob/master/LICENSE.txt"
|
||||
}
|
||||
});
|
||||
// config.SwaggerDoc("internal", new Info { Title = "Bitwarden Internal API", Version = "latest" });
|
||||
|
||||
config.AddSecurityDefinition("OAuth2 Client Credentials", new OAuth2Scheme
|
||||
|
Loading…
Reference in New Issue
Block a user