diff --git a/src/Lidarr.Api.V1/Albums/AlbumLookupController.cs b/src/Lidarr.Api.V1/Albums/AlbumLookupController.cs index cd4e6b54a..e8853f611 100644 --- a/src/Lidarr.Api.V1/Albums/AlbumLookupController.cs +++ b/src/Lidarr.Api.V1/Albums/AlbumLookupController.cs @@ -20,7 +20,8 @@ public AlbumLookupController(ISearchForNewAlbum searchProxy, IMapCoversToLocal c } [HttpGet] - public object Search(string term) + [Produces("application/json")] + public IEnumerable Search(string term) { var searchResults = _searchProxy.SearchForNewAlbum(term, null); return MapToResource(searchResults).ToList(); diff --git a/src/Lidarr.Api.V1/Artist/ArtistLookupController.cs b/src/Lidarr.Api.V1/Artist/ArtistLookupController.cs index 27ff021a1..19a18a0ba 100644 --- a/src/Lidarr.Api.V1/Artist/ArtistLookupController.cs +++ b/src/Lidarr.Api.V1/Artist/ArtistLookupController.cs @@ -23,7 +23,8 @@ public ArtistLookupController(ISearchForNewArtist searchProxy, IBuildFileNames f } [HttpGet] - public object Search([FromQuery] string term) + [Produces("application/json")] + public IEnumerable Search([FromQuery] string term) { var searchResults = _searchProxy.SearchForNewArtist(term); return MapToResource(searchResults).ToList(); diff --git a/src/Lidarr.Api.V1/Search/SearchController.cs b/src/Lidarr.Api.V1/Search/SearchController.cs index 9dc33066c..220afa064 100644 --- a/src/Lidarr.Api.V1/Search/SearchController.cs +++ b/src/Lidarr.Api.V1/Search/SearchController.cs @@ -24,7 +24,8 @@ public SearchController(ISearchForNewEntity searchProxy, IBuildFileNames fileNam } [HttpGet] - public object Search([FromQuery] string term) + [Produces("application/json")] + public IEnumerable Search([FromQuery] string term) { var searchResults = _searchProxy.SearchForNewEntity(term); return MapToResource(searchResults).ToList();