mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Adapt SwaggerService for Jellyfin
This commit is contained in:
parent
cfd5d1a4f2
commit
e9e152d2fc
@ -143,19 +143,18 @@ namespace Emby.Server.Implementations.Services
|
|||||||
swagger = "2.0",
|
swagger = "2.0",
|
||||||
info = new SwaggerInfo
|
info = new SwaggerInfo
|
||||||
{
|
{
|
||||||
title = "Emby Server API",
|
title = "Jellyfin Server API",
|
||||||
version = "1.0.0",
|
version = "1.0.0",
|
||||||
description = "Explore the Emby Server API",
|
description = "Explore the Jellyfin Server API",
|
||||||
contact = new SwaggerConcactInfo
|
contact = new SwaggerConcactInfo
|
||||||
{
|
{
|
||||||
name = "Emby Developer Community",
|
name = "Jellyfin Community",
|
||||||
url = "https://emby.media/community/index.php?/forum/47-developer-api"
|
url = "https://jellyfin.readthedocs.io/en/latest/user-docs/getting-help/"
|
||||||
},
|
}
|
||||||
termsOfService = "https://emby.media/terms"
|
|
||||||
},
|
},
|
||||||
paths = GetPaths(),
|
paths = GetPaths(),
|
||||||
definitions = GetDefinitions(),
|
definitions = GetDefinitions(),
|
||||||
basePath = "/emby",
|
basePath = "/jellyfin",
|
||||||
host = host,
|
host = host,
|
||||||
|
|
||||||
components = new SwaggerComponents
|
components = new SwaggerComponents
|
||||||
@ -197,7 +196,7 @@ namespace Emby.Server.Implementations.Services
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (info.Path.StartsWith("/emby", StringComparison.OrdinalIgnoreCase))
|
if (info.Path.StartsWith("/jellyfin", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user