Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/535caf13243529fb7c5b6b1cfe9f8795e7d64e6b?style=unified&whitespace=ignore-eol You should set ROOT_URL correctly, otherwise the web may not work correctly.

Add return type for artist/album lookup endpoint

Closes 
pull/5316/head
Bogdan 3 days ago
parent eb3c7d6990
commit 535caf1324

@ -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
}
[HttpGet]
public object Search([FromQuery] string term)
[Produces("application/json")]
public IEnumerable<ArtistResource> Search([FromQuery] string term)
{
var searchResults = _searchProxy.SearchForNewArtist(term);
return MapToResource(searchResults).ToList();

@ -24,7 +24,8 @@ namespace Lidarr.Api.V1.Search
}
[HttpGet]
public object Search([FromQuery] string term)
[Produces("application/json")]
public IEnumerable<SearchResource> Search([FromQuery] string term)
{
var searchResults = _searchProxy.SearchForNewEntity(term);
return MapToResource(searchResults).ToList();

Loading…
Cancel
Save