From 2cc5b1ab94369cd88be826f7b44576e67293eb83 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 25 Jun 2020 17:07:12 +0200 Subject: [PATCH] Add response code docs --- Jellyfin.Api/Controllers/AlbumsController.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jellyfin.Api/Controllers/AlbumsController.cs b/Jellyfin.Api/Controllers/AlbumsController.cs index 88d3f643a1..622123873d 100644 --- a/Jellyfin.Api/Controllers/AlbumsController.cs +++ b/Jellyfin.Api/Controllers/AlbumsController.cs @@ -9,6 +9,7 @@ using MediaBrowser.Controller.Entities.Audio; using MediaBrowser.Controller.Library; using MediaBrowser.Model.Dto; using MediaBrowser.Model.Querying; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace Jellyfin.Api.Controllers @@ -45,8 +46,10 @@ namespace Jellyfin.Api.Controllers /// Optional. Filter by user id, and attach user data. /// Optional. Ids of artists to exclude. /// Optional. The maximum number of records to return. + /// Similar albums returned. /// A with similar albums. [HttpGet("/Albums/{albumId}/Similar")] + [ProducesResponseType(StatusCodes.Status200OK)] public ActionResult> GetSimilarAlbums( [FromRoute] string albumId, [FromQuery] Guid userId, @@ -75,8 +78,10 @@ namespace Jellyfin.Api.Controllers /// Optional. Filter by user id, and attach user data. /// Optional. Ids of artists to exclude. /// Optional. The maximum number of records to return. + /// Similar artists returned. /// A with similar artists. [HttpGet("/Artists/{artistId}/Similar")] + [ProducesResponseType(StatusCodes.Status200OK)] public ActionResult> GetSimilarArtists( [FromRoute] string artistId, [FromQuery] Guid userId,