diff --git a/back/src/Kyoo.Core/Views/Resources/LibraryItemApi.cs b/back/src/Kyoo.Core/Views/Resources/LibraryItemApi.cs index 13ff93e1..7f2f22b6 100644 --- a/back/src/Kyoo.Core/Views/Resources/LibraryItemApi.cs +++ b/back/src/Kyoo.Core/Views/Resources/LibraryItemApi.cs @@ -52,44 +52,11 @@ namespace Kyoo.Core.Api /// /// The library item repository used to modify or retrieve information in the data store. /// + /// Thumbnail manager to retrieve images. public LibraryItemApi(ILibraryItemRepository libraryItems, IThumbnailsManager thumbs) : base(libraryItems, thumbs) { _libraryItems = libraryItems; } - - /// - /// Get items - /// - /// - /// List all items of kyoo. - /// An item can ether represent a collection or a show. - /// This endpoint allow one to retrieve all collections and shows that are not contained in a collection. - /// This is what is displayed on the /browse page of the webapp. - /// - /// A key to sort items by. - /// An optional list of filters. - /// The number of items to return. - /// A page of items. - /// The filters or the sort parameters are invalid. - /// No library with the given ID or slug could be found. - [HttpGet] - [PartialPermission(Kind.Read)] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status400BadRequest, Type = typeof(RequestError))] - [ProducesResponseType(StatusCodes.Status404NotFound)] - public async Task>> GetAll( - [FromQuery] string sortBy, - [FromQuery] Dictionary where, - [FromQuery] Pagination pagination) - { - ICollection resources = await _libraryItems.GetAll( - ApiHelper.ParseWhere(where), - Sort.From(sortBy), - pagination - ); - - return Page(resources, pagination.Limit); - } } }