Cleanup watchlist openapi doc

This commit is contained in:
Zoe Roux 2024-05-01 19:20:36 +02:00
parent c52d818a1d
commit 36f6cd5631
No known key found for this signature in database

View File

@ -32,12 +32,12 @@ using static Kyoo.Abstractions.Models.Utils.Constants;
namespace Kyoo.Core.Api; namespace Kyoo.Core.Api;
/// <summary> /// <summary>
/// List new items added to kyoo. /// List times on the user's watchlist
/// </summary> /// </summary>
[Route("watchlist")] [Route("watchlist")]
[ApiController] [ApiController]
[PartialPermission("LibraryItem")] [PartialPermission("Watchlist")]
[ApiDefinition("News", Group = ResourcesGroup)] [ApiDefinition("Watchlist", Group = ResourcesGroup)]
[UserOnly] [UserOnly]
public class WatchlistApi(IWatchStatusRepository repository) : BaseApi public class WatchlistApi(IWatchStatusRepository repository) : BaseApi
{ {
@ -45,7 +45,7 @@ public class WatchlistApi(IWatchStatusRepository repository) : BaseApi
/// Get all /// Get all
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Get all resources that match the given filter. /// Get all resources in the user's watchlist
/// </remarks> /// </remarks>
/// <param name="filter">Filter the returned items.</param> /// <param name="filter">Filter the returned items.</param>
/// <param name="pagination">How many items per page should be returned, where should the page start...</param> /// <param name="pagination">How many items per page should be returned, where should the page start...</param>