|
|
@ -260,15 +260,16 @@ namespace Jellyfin.Server.Extensions
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return serviceCollection.AddSwaggerGen(c =>
|
|
|
|
return serviceCollection.AddSwaggerGen(c =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
var version = typeof(ApplicationHost).Assembly.GetName().Version?.ToString();
|
|
|
|
c.SwaggerDoc("api-docs", new OpenApiInfo
|
|
|
|
c.SwaggerDoc("api-docs", new OpenApiInfo
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Title = "Jellyfin API",
|
|
|
|
Title = "Jellyfin API",
|
|
|
|
Version = "v1",
|
|
|
|
Version = version,
|
|
|
|
Extensions = new Dictionary<string, IOpenApiExtension>
|
|
|
|
Extensions = new Dictionary<string, IOpenApiExtension>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"x-jellyfin-version",
|
|
|
|
"x-jellyfin-version",
|
|
|
|
new OpenApiString(typeof(ApplicationHost).Assembly.GetName().Version?.ToString())
|
|
|
|
new OpenApiString(version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|