The Free Software Media System - Server Backend & API
use decorators to improve openapi endpoint categories
dkanadaa9117bcda4ba
diff --git a/Jellyfin.Api/Controllers/ActivityLogController.cs b/Jellyfin.Api/Controllers/ActivityLogController.csindex 47d3f4b7f7..d6cc0e71a4 100644--- a/Jellyfin.Api/Controllers/ActivityLogController.cs+++ b/Jellyfin.Api/Controllers/ActivityLogController.cs@@ -19,6 +19,7 @@ namespace Jellyfin.Api.Controllers;/// </summary>[Route("System/ActivityLog")][Authorize(Policy = Policies.RequiresElevation)]+[Tags("System")]public class ActivityLogController : BaseJellyfinApiController{private readonly IActivityManager _activityManager;diff --git a/Jellyfin.Api/Controllers/ApiKeyController.cs b/Jellyfin.Api/Controllers/ApiKeyController.csindex 3363d7bad2..161479e4ca 100644--- a/Jellyfin.Api/Controllers/ApiKeyController.cs+++ b/Jellyfin.Api/Controllers/ApiKeyController.cs@@ -14,6 +14,7 @@ namespace Jellyfin.Api.Controllers;/// Authentication controller./// </summary>[Route("Auth")]+[Tags("Authentication")]public class ApiKeyController : BaseJellyfinApiController{private readonly IAuthenticationManager _authenticationManager;diff --git a/Jellyfin.Api/Controllers/ArtistsController.cs b/Jellyfin.Api/Controllers/ArtistsController.csindex 99b0fde06d..f97ab414ce 100644--- a/Jellyfin.Api/Controllers/ArtistsController.cs+++ b/Jellyfin.Api/Controllers/ArtistsController.cs@@ -25,6 +25,7 @@ namespace Jellyfin.Api.Controllers;/// </summary>[Route("Artists")][Authorize]+[Tags("Artist")]public class ArtistsController : BaseJellyfinApiController{private readonly ILibraryManager _libraryManager;diff --git a/Jellyfin.Api/Controllers/ChannelsController.cs b/Jellyfin.Api/Controllers/ChannelsController.csindex 0d85b3a0db..e46ef0e31d 100644--- a/Jellyfin.Api/Controllers/ChannelsController.cs+++ b/Jellyfin.Api/Controllers/ChannelsController.cs@@ -25,6 +25,7 @@ namespace Jellyfin.Api.Controllers;/// Channels Controller./// </summary>[Authorize]+[Tags("Channel")]public class ChannelsController : BaseJellyfinApiController{private readonly IChannelManager _channelManager;diff --git a/Jellyfin.Api/Controllers/ClientLogController.cs b/Jellyfin.Api/Controllers/ClientLogController.csindex 139888bde8..c213b87940 100644--- a/Jellyfin.Api/Controllers/ClientLogController.cs+++ b/Jellyfin.Api/Controllers/ClientLogController.cs@@ -15,6 +15,7 @@ namespace Jellyfin.Api.Controllers;/// Client log controller./// </summary>[Authorize]+[Tags("System")]public class ClientLogController : BaseJellyfinApiController{private const int MaxDocumentSize = 1_000_000;diff --git a/Jellyfin.Api/Controllers/ConfigurationController.cs b/Jellyfin.Api/Controllers/ConfigurationController.csindex 9e03fbeb06..ecd667b2e8 100644--- a/Jellyfin.Api/Controllers/ConfigurationController.cs+++ b/Jellyfin.Api/Controllers/ConfigurationController.cs@@ -20,6 +20,7 @@ namespace Jellyfin.Api.Controllers;/// </summary>[Route("System")][Authorize]+[Tags("System")]public class ConfigurationController : BaseJellyfinApiController{private readonly IServerConfigurationManager _configurationManager;diff --git a/Jellyfin.Api/Controllers/DevicesController.cs b/Jellyfin.Api/Controllers/DevicesController.csindex 50050262f0..eadb8c9855 100644--- a/Jellyfin.Api/Controllers/DevicesController.cs+++ b/Jellyfin.Api/Controllers/DevicesController.cs@@ -19,6 +19,7 @@ namespace Jellyfin.Api.Controllers;/// Devices Controller./// </summary>[Authorize(Policy = Policies.RequiresElevation)]+[Tags("Device")]public class DevicesController : BaseJellyfinApiController{private readonly IDeviceManager _deviceManager;diff --git a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs b/Jellyfin.Api/Controllers/DisplayPreferencesController.csindex ef54e9db54..61d40a7268 100644--- a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs+++ b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs@@ -20,6 +20,7 @@ namespace Jellyfin.Api.Controllers;/// Display Preferences Controller./// </summary>[Authorize]+[Tags("DisplayPreference")]public class DisplayPreferencesController : BaseJellyfinApiController{private readonly IDisplayPreferencesManager _displayPreferencesManager;diff --git a/Jellyfin.Api/Controllers/GenresController.cs b/Jellyfin.Api/Controllers/GenresController.csindex 456e643fd7..39c3f5abcf 100644--- a/Jellyfin.Api/Controllers/GenresController.cs+++ b/Jellyfin.Api/Controllers/GenresController.cs@@ -25,6 +25,7 @@ namespace Jellyfin.Api.Controllers;/// The genres controller./// </summary>[Authorize]+[Tags("Genre")]public class GenresController : BaseJellyfinApiController{private readonly IUserManager _userManager;diff --git a/Jellyfin.Api/Controllers/ItemsController.cs b/Jellyfin.Api/Controllers/ItemsController.csindex 39760556a6..69cdba6afd 100644--- a/Jellyfin.Api/Controllers/ItemsController.cs+++ b/Jellyfin.Api/Controllers/ItemsController.cs@@ -30,6 +30,7 @@ namespace Jellyfin.Api.Controllers;/// </summary>[Route("")][Authorize]+[Tags("Item")]public class ItemsController : BaseJellyfinApiController{private readonly IUserManager _userManager;diff --git a/Jellyfin.Api/Controllers/LyricsController.cs b/Jellyfin.Api/Controllers/LyricsController.csindex 8eb4cadf88..5a27b2719e 100644--- a/Jellyfin.Api/Controllers/LyricsController.cs+++ b/Jellyfin.Api/Controllers/LyricsController.cs@@ -7,7 +7,6 @@ using System.Threading;using System.Threading.Tasks;using Jellyfin.Api.Attributes;using Jellyfin.Api.Extensions;-using Jellyfin.Api.Helpers;using Jellyfin.Extensions;using MediaBrowser.Common.Api;using MediaBrowser.Controller.Entities.Audio;@@ -27,6 +26,7 @@ namespace Jellyfin.Api.Controllers;/// Lyrics controller./// </summary>[Route("")]+[Tags("Lyric")]public class LyricsController : BaseJellyfinApiController{private readonly ILibraryManager _libraryManager;diff --git a/Jellyfin.Api/Controllers/MediaSegmentsController.cs b/Jellyfin.Api/Controllers/MediaSegmentsController.csindex b8836d7cf1..65565826a4 100644--- a/Jellyfin.Api/Controllers/MediaSegmentsController.cs+++ b/Jellyfin.Api/Controllers/MediaSegmentsController.cs@@ -20,6 +20,7 @@ namespace Jellyfin.Api.Controllers;/// Media Segments api./// </summary>[Authorize]+[Tags("MediaSegment")]public class MediaSegmentsController : BaseJellyfinApiController{private readonly IMediaSegmentManager _mediaSegmentManager;diff --git a/Jellyfin.Api/Controllers/MoviesController.cs b/Jellyfin.Api/Controllers/MoviesController.csindex ace9a06395..50d34d0656 100644--- a/Jellyfin.Api/Controllers/MoviesController.cs+++ b/Jellyfin.Api/Controllers/MoviesController.cs@@ -2,7 +2,6 @@ using System;using System.Collections.Generic;using System.Globalization;using System.Linq;-using Jellyfin.Api.Extensions;using Jellyfin.Api.Helpers;using Jellyfin.Api.ModelBinders;using Jellyfin.Data.Enums;@@ -18,6 +17,7 @@ using MediaBrowser.Model.Dto;using MediaBrowser.Model.Entities;using MediaBrowser.Model.Querying;using Microsoft.AspNetCore.Authorization;+using Microsoft.AspNetCore.Http;using Microsoft.AspNetCore.Mvc;namespace Jellyfin.Api.Controllers;@@ -26,6 +26,7 @@ namespace Jellyfin.Api.Controllers;/// Movies controller./// </summary>[Authorize]+[Tags("Movie")]public class MoviesController : BaseJellyfinApiController{private readonly IUserManager _userManager;diff --git a/Jellyfin.Api/Controllers/MusicGenresController.cs b/Jellyfin.Api/Controllers/MusicGenresController.csindex a6427df67a..48d4ebdc04 100644--- a/Jellyfin.Api/Controllers/MusicGenresController.cs+++ b/Jellyfin.Api/Controllers/MusicGenresController.cs@@ -25,6 +25,7 @@ namespace Jellyfin.Api.Controllers;/// The music genres controller./// </summary>[Authorize]+[Tags("MusicGenre")]public class MusicGenresController : BaseJellyfinApiController{private readonly ILibraryManager _libraryManager;diff --git a/Jellyfin.Api/Controllers/PackageController.cs b/Jellyfin.Api/Controllers/PackageController.csindex 274e94ee6d..1f8f963f70 100644--- a/Jellyfin.Api/Controllers/PackageController.cs+++ b/Jellyfin.Api/Controllers/PackageController.cs@@ -3,7 +3,6 @@ using System.Collections.Generic;using System.ComponentModel.DataAnnotations;using System.Linq;using System.Threading.Tasks;-using Jellyfin.Api.Constants;using MediaBrowser.Common.Api;using MediaBrowser.Common.Updates;using MediaBrowser.Controller.Configuration;@@ -19,6 +18,7 @@ namespace Jellyfin.Api.Controllers;/// </summary>[Route("")][Authorize(Policy = Policies.RequiresElevation)]+[Tags("Plugin")]public class PackageController : BaseJellyfinApiController{private readonly IInstallationManager _installationManager;diff --git a/Jellyfin.Api/Controllers/PersonsController.cs b/Jellyfin.Api/Controllers/PersonsController.csindex 1811a219ac..8e7026341d 100644--- a/Jellyfin.Api/Controllers/PersonsController.cs+++ b/Jellyfin.Api/Controllers/PersonsController.cs@@ -22,6 +22,7 @@ namespace Jellyfin.Api.Controllers;/// Persons controller./// </summary>[Authorize]+[Tags("Person")]public class PersonsController : BaseJellyfinApiController{private readonly ILibraryManager _libraryManager;diff --git a/Jellyfin.Api/Controllers/PlaylistsController.cs b/Jellyfin.Api/Controllers/PlaylistsController.csindex 9679180937..048a49ffd4 100644--- a/Jellyfin.Api/Controllers/PlaylistsController.cs+++ b/Jellyfin.Api/Controllers/PlaylistsController.cs@@ -29,6 +29,7 @@ namespace Jellyfin.Api.Controllers;/// Playlists controller./// </summary>[Authorize]+[Tags("Playlist")]public class PlaylistsController : BaseJellyfinApiController{private readonly IPlaylistManager _playlistManager;diff --git a/Jellyfin.Api/Controllers/PlaystateController.cs b/Jellyfin.Api/Controllers/PlaystateController.csindex ade0906b34..b8361dfd88 100644--- a/Jellyfin.Api/Controllers/PlaystateController.cs+++ b/Jellyfin.Api/Controllers/PlaystateController.cs@@ -6,7 +6,6 @@ using Jellyfin.Api.Extensions;using Jellyfin.Api.Helpers;using Jellyfin.Api.ModelBinders;using Jellyfin.Database.Implementations.Entities;-using Jellyfin.Extensions;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Library;using MediaBrowser.Controller.MediaEncoding;@@ -25,6 +24,7 @@ namespace Jellyfin.Api.Controllers;/// </summary>[Route("")][Authorize]+[Tags("Session")]public class PlaystateController : BaseJellyfinApiController{private readonly IUserManager _userManager;diff --git a/Jellyfin.Api/Controllers/PluginsController.cs b/Jellyfin.Api/Controllers/PluginsController.csindex 53b7349e7d..e20efe90a9 100644--- a/Jellyfin.Api/Controllers/PluginsController.cs+++ b/Jellyfin.Api/Controllers/PluginsController.cs@@ -6,7 +6,6 @@ using System.Linq;using System.Text.Json;using System.Threading.Tasks;using Jellyfin.Api.Attributes;-using Jellyfin.Api.Constants;using Jellyfin.Extensions.Json;using MediaBrowser.Common.Api;using MediaBrowser.Common.Plugins;@@ -23,6 +22,7 @@ namespace Jellyfin.Api.Controllers;/// Plugins controller./// </summary>[Authorize(Policy = Policies.RequiresElevation)]+[Tags("Plugin")]public class PluginsController : BaseJellyfinApiController{private readonly IInstallationManager _installationManager;diff --git a/Jellyfin.Api/Controllers/QuickConnectController.cs b/Jellyfin.Api/Controllers/QuickConnectController.csindex bdb2a4d20b..5c7b38e137 100644--- a/Jellyfin.Api/Controllers/QuickConnectController.cs+++ b/Jellyfin.Api/Controllers/QuickConnectController.cs@@ -16,6 +16,7 @@ namespace Jellyfin.Api.Controllers;/// <summary>/// Quick connect controller./// </summary>+[Tags("Authentication")]public class QuickConnectController : BaseJellyfinApiController{private readonly IQuickConnect _quickConnect;diff --git a/Jellyfin.Api/Controllers/ScheduledTasksController.cs b/Jellyfin.Api/Controllers/ScheduledTasksController.csindex 065466cbca..f122d0f5e5 100644--- a/Jellyfin.Api/Controllers/ScheduledTasksController.cs+++ b/Jellyfin.Api/Controllers/ScheduledTasksController.cs@@ -2,7 +2,6 @@ using System;using System.Collections.Generic;using System.ComponentModel.DataAnnotations;using System.Linq;-using Jellyfin.Api.Constants;using MediaBrowser.Common.Api;using MediaBrowser.Model.Tasks;using Microsoft.AspNetCore.Authorization;@@ -15,6 +14,7 @@ namespace Jellyfin.Api.Controllers;/// Scheduled Tasks Controller./// </summary>[Authorize(Policy = Policies.RequiresElevation)]+[Tags("ScheduledTask")]public class ScheduledTasksController : BaseJellyfinApiController{private readonly ITaskManager _taskManager;diff --git a/Jellyfin.Api/Controllers/StudiosController.cs b/Jellyfin.Api/Controllers/StudiosController.csindex ad08dc5f9b..a8feb206a4 100644--- a/Jellyfin.Api/Controllers/StudiosController.cs+++ b/Jellyfin.Api/Controllers/StudiosController.cs@@ -22,6 +22,7 @@ namespace Jellyfin.Api.Controllers;/// Studios controller./// </summary>[Authorize]+[Tags("Studio")]public class StudiosController : BaseJellyfinApiController{private readonly ILibraryManager _libraryManager;diff --git a/Jellyfin.Api/Controllers/SuggestionsController.cs b/Jellyfin.Api/Controllers/SuggestionsController.csindex e9e404076f..9c5515dd92 100644--- a/Jellyfin.Api/Controllers/SuggestionsController.cs+++ b/Jellyfin.Api/Controllers/SuggestionsController.cs@@ -23,6 +23,7 @@ namespace Jellyfin.Api.Controllers;/// </summary>[Route("")][Authorize]+[Tags("Suggestion")]public class SuggestionsController : BaseJellyfinApiController{private readonly IDtoService _dtoService;diff --git a/Jellyfin.Api/Controllers/TimeSyncController.cs b/Jellyfin.Api/Controllers/TimeSyncController.csindex d7304cf426..fe6e11f9e2 100644--- a/Jellyfin.Api/Controllers/TimeSyncController.cs+++ b/Jellyfin.Api/Controllers/TimeSyncController.cs@@ -9,6 +9,7 @@ namespace Jellyfin.Api.Controllers;/// The time sync controller./// </summary>[Route("")]+[Tags("System")]public class TimeSyncController : BaseJellyfinApiController{/// <summary>diff --git a/Jellyfin.Api/Controllers/TrailersController.cs b/Jellyfin.Api/Controllers/TrailersController.csindex 3e4bac89a5..f8c5bd4b87 100644--- a/Jellyfin.Api/Controllers/TrailersController.cs+++ b/Jellyfin.Api/Controllers/TrailersController.cs@@ -15,6 +15,7 @@ namespace Jellyfin.Api.Controllers;/// The trailers controller./// </summary>[Authorize]+[Tags("Trailer")]public class TrailersController : BaseJellyfinApiController{private readonly ItemsController _itemsController;diff --git a/Jellyfin.Api/Controllers/TrickplayController.cs b/Jellyfin.Api/Controllers/TrickplayController.csindex c9f8b36768..d7a10ce5f6 100644--- a/Jellyfin.Api/Controllers/TrickplayController.cs+++ b/Jellyfin.Api/Controllers/TrickplayController.cs@@ -5,7 +5,6 @@ using System.Text;using System.Threading.Tasks;using Jellyfin.Api.Attributes;using Jellyfin.Api.Extensions;-using Jellyfin.Api.Helpers;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Library;using MediaBrowser.Controller.Trickplay;@@ -21,6 +20,7 @@ namespace Jellyfin.Api.Controllers;/// </summary>[Route("")][Authorize]+[Tags("TrickPlay")]public class TrickplayController : BaseJellyfinApiController{private readonly ILibraryManager _libraryManager;diff --git a/Jellyfin.Api/Controllers/TvShowsController.cs b/Jellyfin.Api/Controllers/TvShowsController.csindex c86c9b8f61..e45a100b77 100644--- a/Jellyfin.Api/Controllers/TvShowsController.cs+++ b/Jellyfin.Api/Controllers/TvShowsController.cs@@ -27,6 +27,7 @@ namespace Jellyfin.Api.Controllers;/// </summary>[Route("Shows")][Authorize]+[Tags("Show")]public class TvShowsController : BaseJellyfinApiController{private readonly IUserManager _userManager;diff --git a/Jellyfin.Api/Controllers/UniversalAudioController.cs b/Jellyfin.Api/Controllers/UniversalAudioController.csindex f4e0c86143..d4e9b234c5 100644--- a/Jellyfin.Api/Controllers/UniversalAudioController.cs+++ b/Jellyfin.Api/Controllers/UniversalAudioController.cs@@ -29,6 +29,7 @@ namespace Jellyfin.Api.Controllers;/// The universal audio controller./// </summary>[Route("")]+[Tags("Audio")]public class UniversalAudioController : BaseJellyfinApiController{private readonly ILibraryManager _libraryManager;diff --git a/Jellyfin.Api/Controllers/UserViewsController.cs b/Jellyfin.Api/Controllers/UserViewsController.csindex ed4bba2bb1..c1d06bad36 100644--- a/Jellyfin.Api/Controllers/UserViewsController.cs+++ b/Jellyfin.Api/Controllers/UserViewsController.cs@@ -26,6 +26,7 @@ namespace Jellyfin.Api.Controllers;/// </summary>[Route("")][Authorize]+[Tags("UserView")]public class UserViewsController : BaseJellyfinApiController{private readonly IUserManager _userManager;diff --git a/Jellyfin.Api/Controllers/VideoAttachmentsController.cs b/Jellyfin.Api/Controllers/VideoAttachmentsController.csindex b67c6fdb7b..2c8b452c35 100644--- a/Jellyfin.Api/Controllers/VideoAttachmentsController.cs+++ b/Jellyfin.Api/Controllers/VideoAttachmentsController.cs@@ -19,6 +19,7 @@ namespace Jellyfin.Api.Controllers;/// Attachments controller./// </summary>[Route("Videos")]+[Tags("Video")]public class VideoAttachmentsController : BaseJellyfinApiController{private readonly ILibraryManager _libraryManager;diff --git a/Jellyfin.Api/Controllers/VideosController.cs b/Jellyfin.Api/Controllers/VideosController.csindex 7854edc5ac..394a95ee5f 100644--- a/Jellyfin.Api/Controllers/VideosController.cs+++ b/Jellyfin.Api/Controllers/VideosController.cs@@ -35,6 +35,7 @@ namespace Jellyfin.Api.Controllers;/// <summary>/// The videos controller./// </summary>+[Tags("Video")]public class VideosController : BaseJellyfinApiController{private readonly ILibraryManager _libraryManager;diff --git a/Jellyfin.Api/Controllers/YearsController.cs b/Jellyfin.Api/Controllers/YearsController.csindex 685334a9f0..aa6464ee7a 100644--- a/Jellyfin.Api/Controllers/YearsController.cs+++ b/Jellyfin.Api/Controllers/YearsController.cs@@ -26,6 +26,7 @@ namespace Jellyfin.Api.Controllers;/// Years controller./// </summary>[Authorize]+[Tags("Year")]public class YearsController : BaseJellyfinApiController{private readonly ILibraryManager _libraryManager;