Add OpenAPI license and contact

This commit is contained in:
Jordan Brown
2020-08-11 13:53:58 -04:00
parent 2c40ae4cc4
commit be4bf16bbb
@@ -128,7 +128,17 @@ namespace Tgstation.Server.Host.Core
new OpenApiInfo
{
Title = "TGS API",
Version = ApiHeaders.Version.Semver().ToString()
Version = ApiHeaders.Version.Semver().ToString(),
License = new OpenApiLicense
{
Name = "AGPL-3.0",
Url = new Uri("https://github.com/tgstation/tgstation-server/blob/dev/LICENSE")
},
Contact = new OpenApiContact
{
Name = "/tg/station 13",
Url = new Uri("https://github.com/tgstation")
}
});
// Important to do this before applying our own filters