1
0
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:
Kyle Spearrin 2019-03-07 14:06:02 -05:00
parent 14ee85eea2
commit 2684de0fff

View File

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