aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/AlbumsController.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-09-07 14:07:15 -0600
committercrobibero <cody@robibe.ro>2020-09-07 14:07:15 -0600
commit7de0fcfc948da26c4d9be95e6712b47bed0590db (patch)
treee37320deba934fa88847511f2ac37926767337f7 /Jellyfin.Api/Controllers/AlbumsController.cs
parent26c432b56489ec68c0cb708982c6939bf8e6e0e5 (diff)
parent386ffd1b65ea3ea6d1ba63c1818ee99e90a4e8e6 (diff)
Merge remote-tracking branch 'upstream/master' into startup-complete
Diffstat (limited to 'Jellyfin.Api/Controllers/AlbumsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/AlbumsController.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/AlbumsController.cs b/Jellyfin.Api/Controllers/AlbumsController.cs
index 190d4bd07..357f646a2 100644
--- a/Jellyfin.Api/Controllers/AlbumsController.cs
+++ b/Jellyfin.Api/Controllers/AlbumsController.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
using System.Linq;
using Jellyfin.Api.Extensions;
using Jellyfin.Api.Helpers;
@@ -52,7 +53,7 @@ namespace Jellyfin.Api.Controllers
[HttpGet("Albums/{albumId}/Similar")]
[ProducesResponseType(StatusCodes.Status200OK)]
public ActionResult<QueryResult<BaseItemDto>> GetSimilarAlbums(
- [FromRoute] string albumId,
+ [FromRoute, Required] string albumId,
[FromQuery] Guid? userId,
[FromQuery] string? excludeArtistIds,
[FromQuery] int? limit)
@@ -84,7 +85,7 @@ namespace Jellyfin.Api.Controllers
[HttpGet("Artists/{artistId}/Similar")]
[ProducesResponseType(StatusCodes.Status200OK)]
public ActionResult<QueryResult<BaseItemDto>> GetSimilarArtists(
- [FromRoute] string artistId,
+ [FromRoute, Required] string artistId,
[FromQuery] Guid? userId,
[FromQuery] string? excludeArtistIds,
[FromQuery] int? limit)