Closes #5282
@ -20,7 +20,8 @@ namespace Lidarr.Api.V1.Albums
}
[HttpGet]
public object Search(string term)
[Produces("application/json")]
public IEnumerable<AlbumResource> Search(string term)
{
var searchResults = _searchProxy.SearchForNewAlbum(term, null);
return MapToResource(searchResults).ToList();
@ -23,7 +23,8 @@ namespace Lidarr.Api.V1.Artist
public object Search([FromQuery] string term)
public IEnumerable<ArtistResource> Search([FromQuery] string term)
var searchResults = _searchProxy.SearchForNewArtist(term);
@ -24,7 +24,8 @@ namespace Lidarr.Api.V1.Search
public IEnumerable<SearchResource> Search([FromQuery] string term)
var searchResults = _searchProxy.SearchForNewEntity(term);