aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanne <danne.e85@gmail.com>2026-06-14 09:18:50 +0200
committerdanne <danne.e85@gmail.com>2026-06-19 07:03:58 +0200
commite75161c557596c79c18b84a28790b9a2317bda1e (patch)
treedaf4920fbf5c0d458c4071b765554ad4fc91ccba
parent047519c61a2a6a481906116170a996cd8d3621fc (diff)
Deprecate the redundant /Trailers endpoint
GET /Trailers is a thin alias for GET /Items with includeItemTypes=Trailer; it just forwards to the injected ItemsController. Per the PR review the agreed direction is to deprecate it rather than keep maintaining the delegation. Mark the action [Obsolete] so it is flagged as deprecated in the OpenAPI spec; clients should use the GetItems operation with includeItemTypes=Trailer instead. Re #17065
-rw-r--r--Jellyfin.Api/Controllers/TrailersController.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/TrailersController.cs b/Jellyfin.Api/Controllers/TrailersController.cs
index 121db66858..6bddd85337 100644
--- a/Jellyfin.Api/Controllers/TrailersController.cs
+++ b/Jellyfin.Api/Controllers/TrailersController.cs
@@ -122,6 +122,7 @@ public class TrailersController : BaseJellyfinApiController
/// <returns>A <see cref="QueryResult{BaseItemDto}"/> with the trailers.</returns>
[HttpGet]
[ProducesResponseType(StatusCodes.Status200OK)]
+ [Obsolete("Use GetItems with includeItemTypes=Trailer instead.")]
public async Task<ActionResult<QueryResult<BaseItemDto>>> GetTrailers(
[FromQuery] Guid? userId,
[FromQuery] string? maxOfficialRating,