Enforces XML documentation on public members.

This commit is contained in:
BinaryAlley committed 2026-11-16 20:16:23 +02:00
1 parent 0daef2acab
commit 308402ad0e
202 files changed
+3901 -98

No files matched your search

@@ -5,7 +5,18 @@ namespace Lumina.Presentation.Web.Common.Authorization;
/// </summary>
public static class AuthorizationPolicies
{
/// <summary>
/// The name of the authorization policy that requires the administrator role.
/// </summary>
public const string REQUIRE_ADMIN_ROLE = "RequireAdminRole";
/// <summary>
/// The name of the authorization policy that requires the permission to create media libraries.
/// </summary>
public const string REQUIRE_CREATE_LIBRARIES_PERMISSION = "RequireCreateLibrariesPermission";
/// <summary>
/// The name of the authorization policy that requires the application to be initialized.
/// </summary>
public const string REQUIRE_INITIALIZATION = "RequireInitialization";
}
@@ -5,15 +5,18 @@ using System.Diagnostics;
namespace Lumina.Presentation.Web.Common.DTO.Configuration;
/// <summary>
/// Data transfer object for deserializing media settings.
/// Data transfer object for deserializing encryption settings.
/// </summary>
[DebuggerDisplay("Section name: {SECTION_NAME}")]
public class EncryptionSettingsDto
{
/// <summary>
/// The name of the configuration section that holds the encryption settings.
/// </summary>
public const string SECTION_NAME = "EncryptionSettings";
/// <summary>
/// Gets or sets the root directory where media files are stored.
/// Gets or sets the Base64 encoded secret key used to encrypt and decrypt protected data.
/// </summary>
public required string SecretKey { get; init; }
}
@@ -10,15 +10,18 @@ namespace Lumina.Presentation.Web.Common.DTO.Configuration;
[DebuggerDisplay("Section name: {SECTION_NAME}")]
public class ServerConfigurationDto
{
/// <summary>
/// The name of the configuration section that holds the server settings.
/// </summary>
public const string SECTION_NAME = "ServerConfiguration";
/// <summary>
/// Gets or sets the remote API server path.
/// Gets or sets the version of the remote API used in the request URL.
/// </summary>
public required char ApiVersion { get; init; }
/// <summary>
/// Gets or sets the remote API server path.
/// Gets or sets the remote API server address.
/// </summary>
public required string BaseAddress { get; init; }
@@ -140,9 +140,9 @@ public class BookDto
/// </summary>
public float? VolumeNumber { get; init; }
/// <summary>
/// Gets the series id, if the book is part of a series.
/// </summary>
///// <summary>
///// Gets the series id, if the book is part of a series.
///// </summary>
//public Guid? BookSeriesId { get; init; } = null;
/// <summary>
@@ -181,7 +181,7 @@ public class BookDto
public string? GoogleBooksId { get; init; } = null!;
/// <summary>
/// Gets the Barnes & Noble ID of the book.
/// Gets the Barnes &amp; Noble ID of the book.
/// </summary>
public string? BarnesAndNobleId { get; init; } = null!;
@@ -195,9 +195,9 @@ public class BookDto
/// </summary>
public List<IsbnDto> ISBNs { get; set; } = [];
/// <summary>
/// Gets the list of media contributors that contributed to this book.
/// </summary>
///// <summary>
///// Gets the list of media contributors that contributed to this book.
///// </summary>
//public List<ContributorIdModel> ContributorIds { get; init; } = [];
/// <summary>
@@ -5,9 +5,28 @@ namespace Lumina.Presentation.Web.Common.Enums.Authorization;
/// </summary>
public enum AuthorizationPermission
{
/// <summary>
/// No permission is granted.
/// </summary>
None = 0,
/// <summary>
/// Permission to view the existing users.
/// </summary>
CanViewUsers,
/// <summary>
/// Permission to delete the existing users.
/// </summary>
CanDeleteUsers,
/// <summary>
/// Permission to register new users.
/// </summary>
CanRegisterUsers,
/// <summary>
/// Permission to create and manage media libraries.
/// </summary>
CanCreateLibraries
}
@@ -101,7 +101,7 @@ public enum LibraryType
LiveRecordingVideo,
/// <summary>
/// Recorded conversations and Q&A sessions in video format.
/// Recorded conversations and Q&amp;A sessions in video format.
/// </summary>
InterviewVideo,
@@ -131,7 +131,7 @@ public enum LibraryType
LiveRecordingAudio,
/// <summary>
/// Recorded conversations and Q&A sessions in audio format.
/// Recorded conversations and Q&amp;A sessions in audio format.
/// </summary>
InterviewAudio,
@@ -5,8 +5,19 @@ namespace Lumina.Presentation.Web.Common.Http;
/// </summary>
public static class HttpContextItemKeys
{
/// <summary>
/// The key under which the validation errors of the current request are stored.
/// </summary>
public const string ERRORS = "errors";
/// <summary>
/// The key under which the flag indicating that the super administrator account still has to be set up is stored.
/// </summary>
public const string PENDING_SUPER_ADMIN_SETUP = "PendingSuperAdminSetup";
/// <summary>
/// The key under which the URL of the last displayed view is stored.
/// </summary>
public const string LAST_DISPLAYED_VIEW = "LastViewUrl";
/// <summary>
@@ -10,10 +10,29 @@ public static partial class ApiRoutes
/// </summary>
public static class Authentication
{
/// <summary>
/// The route for the account registration API endpoint.
/// </summary>
public const string REGISTER_ACCOUNT = "auth/register";
/// <summary>
/// The route for the account login API endpoint.
/// </summary>
public const string LOGIN_ACCOUNT = "auth/login";
/// <summary>
/// The route for the password recovery API endpoint.
/// </summary>
public const string RECOVER_PASSWORD = "auth/recover-password";
/// <summary>
/// The route for the password change API endpoint.
/// </summary>
public const string CHANGE_PASSWORD = "auth/change-password";
/// <summary>
/// The route for the user accounts API endpoint.
/// </summary>
public const string USERS = "auth/users";
}
}
@@ -10,9 +10,24 @@ public static partial class ApiRoutes
/// </summary>
public static class Authorization
{
/// <summary>
/// The route for the API endpoint that updates the role and permissions of a user.
/// </summary>
public const string UPDATE_USER_ROLE_AND_PERMISSIONS_BY_USER_ID = "auth/users/{userId}/role-and-permissions";
/// <summary>
/// The route for the API endpoint that retrieves the permissions of a user.
/// </summary>
public const string GET_USER_PERMISSIONS_BY_USER_ID = "auth/users/{userId}/permissions";
/// <summary>
/// The route for the API endpoint that retrieves the role of a user.
/// </summary>
public const string GET_USER_ROLE_BY_USER_ID = "auth/users/{userId}/role";
/// <summary>
/// The route for the authorization retrieval API endpoint.
/// </summary>
public const string GET_AUTHORIZATION = "auth/get-authorization";
}
}
@@ -10,16 +10,59 @@ public static partial class ApiRoutes
/// </summary>
public static class Books
{
/// <summary>
/// The route for the API endpoint that retrieves the lightweight list of books of a library.
/// </summary>
public const string GET_BOOKS_LITE = "libraries/{libraryId}/books/lite";
/// <summary>
/// The route for the API endpoint that retrieves a book of a library.
/// </summary>
public const string GET_BOOK = "libraries/{libraryId}/books/{bookId}";
/// <summary>
/// The route for the API endpoint that updates a book of a library.
/// </summary>
public const string UPDATE_BOOK = "libraries/{libraryId}/books/{bookId}";
/// <summary>
/// The route for the API endpoint that deletes a book of a library.
/// </summary>
public const string DELETE_BOOK = "libraries/{libraryId}/books/{bookId}";
/// <summary>
/// The route for the API endpoint that retrieves the deleted books of a library.
/// </summary>
public const string GET_DELETED_BOOKS = "libraries/{libraryId}/books/deleted-items";
/// <summary>
/// The route for the API endpoint that restores a deleted book of a library.
/// </summary>
public const string RESTORE_BOOK = "libraries/{libraryId}/books/{bookId}/restore";
/// <summary>
/// The route for the API endpoint that updates the cover of a book of a library.
/// </summary>
public const string UPDATE_BOOK_COVER = "libraries/{libraryId}/books/{bookId}/cover";
/// <summary>
/// The route for the API endpoint that retrieves the reading manifest of a book.
/// </summary>
public const string GET_BOOK_READING_MANIFEST = "libraries/{libraryId}/books/{bookId}/reading/manifest";
/// <summary>
/// The route for the API endpoint that retrieves the reading availability of a book.
/// </summary>
public const string GET_BOOK_READING_AVAILABILITY = "libraries/{libraryId}/books/{bookId}/reading/availability";
/// <summary>
/// The route for the API endpoint that retrieves a reading section of a book.
/// </summary>
public const string GET_BOOK_READING_SECTION = "libraries/{libraryId}/books/{bookId}/reading/sections/{locationRef}";
/// <summary>
/// The route for the API endpoint that retrieves a reading resource of a book.
/// </summary>
public const string GET_BOOK_READING_RESOURCE = "libraries/{libraryId}/books/{bookId}/reading/resources/{resourceKey}";
}
}
@@ -10,6 +10,9 @@ public static partial class ApiRoutes
/// </summary>
public static class Directories
{
/// <summary>
/// The route for the API endpoint that retrieves the subdirectories of a directory.
/// </summary>
public const string GET_DIRECTORIES = "directories/get-directories";
}
}
@@ -10,6 +10,9 @@ public static partial class ApiRoutes
/// </summary>
public static class Drives
{
/// <summary>
/// The route for the API endpoint that retrieves the drives of the host machine.
/// </summary>
public const string GET_DRIVES = "drives/get-drives";
}
}
@@ -10,9 +10,24 @@ public static partial class ApiRoutes
/// </summary>
public static class Favorites
{
/// <summary>
/// The route for the API endpoint that retrieves the favorites of the current user.
/// </summary>
public const string GET_FAVORITES = "users/me/favorites";
/// <summary>
/// The route for the API endpoint that adds a media item to the favorites of the current user.
/// </summary>
public const string ADD_FAVORITE = "users/me/favorites";
/// <summary>
/// The route for the API endpoint that removes a media item from the favorites of the current user.
/// </summary>
public const string REMOVE_FAVORITE = "users/me/favorites/{mediaKind}/{mediaItemId}";
/// <summary>
/// The route for the API endpoint that retrieves the favorite status of a media item for the current user.
/// </summary>
public const string GET_FAVORITE_STATUS = "users/me/favorites/status";
}
}
@@ -10,6 +10,9 @@ public static partial class ApiRoutes
/// </summary>
public static class FileSystem
{
/// <summary>
/// The route for getting the type of the file system.
/// </summary>
public const string GET_TYPES = "file-system/get-type";
}
}
@@ -10,7 +10,14 @@ public static partial class ApiRoutes
/// </summary>
public static class Files
{
/// <summary>
/// The route for the API endpoint that retrieves the files of a directory as a tree.
/// </summary>
public const string GET_TREE_FILES = "files/get-tree-files";
/// <summary>
/// The route for the API endpoint that retrieves the files of a directory.
/// </summary>
public const string GET_FILES = "files/get-files";
}
}
@@ -10,7 +10,14 @@ public static partial class ApiRoutes
/// </summary>
public static class Initialization
{
/// <summary>
/// The route for the application setup API endpoint.
/// </summary>
public const string SETUP_APPLICATION = "initialization";
/// <summary>
/// The route for the initialization status API endpoint.
/// </summary>
public const string CHECK_INITIALIZATION = "initialization";
}
}
@@ -10,23 +10,94 @@ public static partial class ApiRoutes
/// </summary>
public static class Libraries
{
/// <summary>
/// The route for the API endpoint that retrieves a media library by its Id.
/// </summary>
public const string GET_LIBRARY_BY_ID = "libraries/{id}";
/// <summary>
/// The route for the API endpoint that retrieves all media libraries.
/// </summary>
public const string GET_LIBRARIES = "libraries";
/// <summary>
/// The route for the API endpoint that retrieves the enabled media libraries.
/// </summary>
public const string GET_ENABLED_LIBRARIES = "libraries/enabled";
/// <summary>
/// The route for the API endpoint that adds a media library.
/// </summary>
public const string ADD_LIBRARY = "libraries";
/// <summary>
/// The route for the API endpoint that updates a media library.
/// </summary>
public const string UPDATE_LIBRARY = "libraries/{id}";
/// <summary>
/// The route for the API endpoint that deletes a media library.
/// </summary>
public const string DELETE_LIBRARY = "libraries/{id}";
/// <summary>
/// The route for the API endpoint that scans all media libraries.
/// </summary>
public const string SCAN_LIBRARIES = "libraries/scans";
/// <summary>
/// The route for the API endpoint that scans a single media library.
/// </summary>
public const string SCAN_LIBRARY = "libraries/{id}/scans";
/// <summary>
/// The route for the API endpoint that retrieves the scans currently running on the media libraries.
/// </summary>
public const string GET_RUNNING_LIBRARIES_SCAN = "libraries/scans/running";
/// <summary>
/// The route for the API endpoint that cancels the scans running on all media libraries.
/// </summary>
public const string CANCEL_LIBRARIES_SCAN = "libraries/scans/cancel";
/// <summary>
/// The route for the API endpoint that cancels a scan running on a single media library.
/// </summary>
public const string CANCEL_LIBRARY_SCAN = "libraries/{libraryId}/scans/{scanId}/cancel";
/// <summary>
/// The route for the API endpoint that retrieves the path template parts of a library type.
/// </summary>
public const string GET_LIBRARY_PATH_TEMPLATE_PARTS = "libraries/path-template-parts/{libraryType}";
/// <summary>
/// The route for the API endpoint that retrieves the metadata providers of a media library.
/// </summary>
public const string GET_LIBRARY_METADATA_PROVIDERS = "libraries/{libraryId}/metadata-providers";
/// <summary>
/// The route for the API endpoint that retrieves the artwork providers of a media library.
/// </summary>
public const string GET_LIBRARY_ARTWORK_PROVIDERS = "libraries/{libraryId}/artwork-providers";
/// <summary>
/// The route for the API endpoint that retrieves the book readers of a media library.
/// </summary>
public const string GET_LIBRARY_BOOK_READERS = "libraries/{libraryId}/book-readers";
/// <summary>
/// The route for the API endpoint that retrieves the metadata providers of a library type.
/// </summary>
public const string GET_LIBRARY_TYPE_METADATA_PROVIDERS = "libraries/metadata-providers/{libraryType}";
/// <summary>
/// The route for the API endpoint that retrieves the artwork providers of a library type.
/// </summary>
public const string GET_LIBRARY_TYPE_ARTWORK_PROVIDERS = "libraries/artwork-providers/{libraryType}";
/// <summary>
/// The route for the API endpoint that retrieves the book readers of a library type.
/// </summary>
public const string GET_LIBRARY_TYPE_BOOK_READERS = "libraries/book-readers/{libraryType}";
}
}
@@ -10,22 +10,89 @@ public static partial class ApiRoutes
/// </summary>
public static class LibraryStatistics
{
/// <summary>
/// The route for the API endpoint that retrieves the recently consumed media items of the current user.
/// </summary>
public const string GET_RECENTLY_CONSUMED = "users/me/consumption-history/recently-consumed";
/// <summary>
/// The route for the API endpoint that retrieves the most consumed media items of the current user.
/// </summary>
public const string GET_MOST_CONSUMED = "users/me/consumption-history/most-consumed";
/// <summary>
/// The route for the API endpoint that retrieves the consumption statistics of the current user.
/// </summary>
public const string GET_CONSUMPTION_STATISTICS = "users/me/consumption-statistics";
/// <summary>
/// The route for the API endpoint that retrieves the tag consumption statistics of the current user.
/// </summary>
public const string GET_TAG_CONSUMPTION = "users/me/consumption-statistics/tags";
/// <summary>
/// The route for the API endpoint that retrieves the genre consumption statistics of the current user.
/// </summary>
public const string GET_GENRE_CONSUMPTION = "users/me/consumption-statistics/genres";
/// <summary>
/// The route for the API endpoint that retrieves the recently consumed media items of a user.
/// </summary>
public const string GET_USER_RECENTLY_CONSUMED = "users/{userId}/consumption-history/recently-consumed";
/// <summary>
/// The route for the API endpoint that retrieves the most consumed media items of a user.
/// </summary>
public const string GET_USER_MOST_CONSUMED = "users/{userId}/consumption-history/most-consumed";
/// <summary>
/// The route for the API endpoint that retrieves the consumption statistics of a user.
/// </summary>
public const string GET_USER_CONSUMPTION_STATISTICS = "users/{userId}/consumption-statistics";
/// <summary>
/// The route for the API endpoint that retrieves the tag consumption statistics of a user.
/// </summary>
public const string GET_USER_TAG_CONSUMPTION = "users/{userId}/consumption-statistics/tags";
/// <summary>
/// The route for the API endpoint that retrieves the genre consumption statistics of a user.
/// </summary>
public const string GET_USER_GENRE_CONSUMPTION = "users/{userId}/consumption-statistics/genres";
/// <summary>
/// The route for the API endpoint that retrieves the consumption statistics of all users.
/// </summary>
public const string GET_ALL_USERS_CONSUMPTION_STATISTICS = "users/consumption-statistics";
/// <summary>
/// The route for the API endpoint that deletes a media item from the consumption history of the current user.
/// </summary>
public const string DELETE_CONSUMPTION_ITEM_HISTORY = "users/me/consumption-history/media-items/{mediaKind}/{mediaItemId}/{libraryId}";
/// <summary>
/// The route for the API endpoint that deletes a media item from the consumption history of a user.
/// </summary>
public const string DELETE_USER_CONSUMPTION_ITEM_HISTORY = "users/{userId}/consumption-history/media-items/{mediaKind}/{mediaItemId}/{libraryId}";
/// <summary>
/// The route for the API endpoint that clears the consumption history of the current user.
/// </summary>
public const string CLEAR_CONSUMPTION_HISTORY = "users/me/consumption-history";
/// <summary>
/// The route for the API endpoint that clears the consumption history of a user.
/// </summary>
public const string CLEAR_USER_CONSUMPTION_HISTORY = "users/{userId}/consumption-history";
/// <summary>
/// The route for the API endpoint that clears the media resume points of the current user.
/// </summary>
public const string CLEAR_RESUME_POINTS = "users/me/media-resume-points";
/// <summary>
/// The route for the API endpoint that clears the media resume points of a user.
/// </summary>
public const string CLEAR_USER_RESUME_POINTS = "users/{userId}/media-resume-points";
}
}
@@ -10,10 +10,29 @@ public static partial class ApiRoutes
/// </summary>
public static class MediaConsumption
{
/// <summary>
/// The route for the API endpoint that starts the consumption of a media item.
/// </summary>
public const string START_CONSUMPTION = "libraries/{libraryId}/media-items/{mediaKind}/{mediaItemId}/consumption-records";
/// <summary>
/// The route for the API endpoint that reports the progress of a consumption record.
/// </summary>
public const string REPORT_CONSUMPTION_PROGRESS = "users/me/consumption-records/{recordId}/progress";
/// <summary>
/// The route for the API endpoint that completes a consumption record.
/// </summary>
public const string COMPLETE_CONSUMPTION = "users/me/consumption-records/{recordId}/complete";
/// <summary>
/// The route for the API endpoint that stops a consumption record.
/// </summary>
public const string STOP_CONSUMPTION = "users/me/consumption-records/{recordId}/stop";
/// <summary>
/// The route for the API endpoint that retrieves the resume point of a media item of the current user.
/// </summary>
public const string GET_RESUME_POINT = "users/me/media-resume-points/{mediaKind}/{mediaItemId}";
}
}
@@ -10,29 +10,124 @@ public static partial class ApiRoutes
/// </summary>
public static class Music
{
/// <summary>
/// The route for the API endpoint that retrieves the lightweight list of artists of a library.
/// </summary>
public const string GET_ARTISTS_LITE = "libraries/{libraryId}/artists/lite";
/// <summary>
/// The route for the API endpoint that retrieves an artist of a library.
/// </summary>
public const string GET_ARTIST = "libraries/{libraryId}/artists/{artistId}";
/// <summary>
/// The route for the API endpoint that updates an artist of a library.
/// </summary>
public const string UPDATE_ARTIST = "libraries/{libraryId}/artists/{artistId}";
/// <summary>
/// The route for the API endpoint that updates the cover of an artist of a library.
/// </summary>
public const string UPDATE_ARTIST_COVER = "libraries/{libraryId}/artists/{artistId}/cover";
/// <summary>
/// The route for the API endpoint that deletes an artist of a library.
/// </summary>
public const string DELETE_ARTIST = "libraries/{libraryId}/artists/{artistId}";
/// <summary>
/// The route for the API endpoint that retrieves the deleted artists of a library.
/// </summary>
public const string GET_DELETED_ARTISTS = "libraries/{libraryId}/artists/deleted-items";
/// <summary>
/// The route for the API endpoint that restores a deleted artist of a library.
/// </summary>
public const string RESTORE_ARTIST = "libraries/{libraryId}/artists/{artistId}/restore";
/// <summary>
/// The route for the API endpoint that retrieves the lightweight list of albums of an artist.
/// </summary>
public const string GET_ARTIST_ALBUMS_LITE = "libraries/{libraryId}/artists/{artistId}/albums/lite";
/// <summary>
/// The route for the API endpoint that retrieves an album of an artist.
/// </summary>
public const string GET_ALBUM = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}";
/// <summary>
/// The route for the API endpoint that updates an album of an artist.
/// </summary>
public const string UPDATE_ALBUM = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}";
/// <summary>
/// The route for the API endpoint that updates the cover of an album of an artist.
/// </summary>
public const string UPDATE_ALBUM_COVER = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/cover";
/// <summary>
/// The route for the API endpoint that deletes an album of an artist.
/// </summary>
public const string DELETE_ALBUM = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}";
/// <summary>
/// The route for the API endpoint that retrieves the deleted albums of a library.
/// </summary>
public const string GET_DELETED_ALBUMS = "libraries/{libraryId}/albums/deleted-items";
/// <summary>
/// The route for the API endpoint that restores a deleted album of an artist.
/// </summary>
public const string RESTORE_ALBUM = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/restore";
/// <summary>
/// The route for the API endpoint that retrieves the lightweight list of tracks of an album.
/// </summary>
public const string GET_ALBUM_TRACKS_LITE = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/lite";
/// <summary>
/// The route for the API endpoint that shuffles the tracks of a library.
/// </summary>
public const string SHUFFLE_TRACKS = "libraries/{libraryId}/tracks/shuffle";
/// <summary>
/// The route for the API endpoint that retrieves a track of an album.
/// </summary>
public const string GET_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
/// <summary>
/// The route for the API endpoint that updates a track of an album.
/// </summary>
public const string UPDATE_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
/// <summary>
/// The route for the API endpoint that deletes a track of an album.
/// </summary>
public const string DELETE_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
/// <summary>
/// The route for the API endpoint that retrieves the deleted tracks of a library.
/// </summary>
public const string GET_DELETED_TRACKS = "libraries/{libraryId}/tracks/deleted-items";
/// <summary>
/// The route for the API endpoint that restores a deleted track of an album.
/// </summary>
public const string RESTORE_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}/restore";
/// <summary>
/// The route for the API endpoint that streams a track of an album.
/// </summary>
public const string STREAM_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}/stream";
/// <summary>
/// The route for the API endpoint that streams a segment of a track delivery.
/// </summary>
public const string STREAM_TRACK_SEGMENT = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}/stream/deliveries/{deliveryId}/segments/{segmentIndex}";
/// <summary>
/// The route for the API endpoint that retrieves the playback manifest of a track.
/// </summary>
public const string GET_PLAYBACK_MANIFEST = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}/playback-manifest";
}
}
@@ -10,11 +10,34 @@ public static partial class ApiRoutes
/// </summary>
public static class Path
{
/// <summary>
/// The route for the API endpoint that retrieves the root of a path.
/// </summary>
public const string GET_PATH_ROOT = "path/get-path-root";
/// <summary>
/// The route for the API endpoint that retrieves the separator of the current platform.
/// </summary>
public const string GET_PATH_SEPARATOR = "path/get-path-separator";
/// <summary>
/// The route for the API endpoint that retrieves the parent of a path.
/// </summary>
public const string GET_PATH_PARENT = "path/get-path-parent";
/// <summary>
/// The route for the API endpoint that splits a path into its parts.
/// </summary>
public const string SPLIT = "path/split";
/// <summary>
/// The route for the API endpoint that validates a path.
/// </summary>
public const string VALIDATE = "path/validate";
/// <summary>
/// The route for the API endpoint that checks whether a path exists.
/// </summary>
public const string CHECK_PATH_EXISTS = "path/check-path-exists";
}
}
@@ -10,6 +10,9 @@ public static partial class ApiRoutes
/// </summary>
public static class Permissions
{
/// <summary>
/// The route for the permissions retrieval API endpoint.
/// </summary>
public const string GET_PERMISSIONS = "auth/permissions";
}
}
@@ -10,15 +10,54 @@ public static partial class ApiRoutes
/// </summary>
public static class Playlists
{
/// <summary>
/// The route for the API endpoint that retrieves the playlists of the current user.
/// </summary>
public const string GET_PLAYLISTS = "users/me/playlists";
/// <summary>
/// The route for the API endpoint that creates a playlist for the current user.
/// </summary>
public const string CREATE_PLAYLIST = "users/me/playlists";
/// <summary>
/// The route for the API endpoint that retrieves a playlist of the current user.
/// </summary>
public const string GET_PLAYLIST = "users/me/playlists/{playlistId}";
/// <summary>
/// The route for the API endpoint that updates a playlist of the current user.
/// </summary>
public const string UPDATE_PLAYLIST = "users/me/playlists/{playlistId}";
/// <summary>
/// The route for the API endpoint that deletes a playlist of the current user.
/// </summary>
public const string DELETE_PLAYLIST = "users/me/playlists/{playlistId}";
/// <summary>
/// The route for the API endpoint that adds an entry to a playlist of the current user.
/// </summary>
public const string ADD_PLAYLIST_ENTRY = "users/me/playlists/{playlistId}/entries";
/// <summary>
/// The route for the API endpoint that adds multiple entries to a playlist of the current user.
/// </summary>
public const string ADD_PLAYLIST_ENTRIES = "users/me/playlists/{playlistId}/entries-batch";
/// <summary>
/// The route for the API endpoint that adds every track of a library, an artist, or an album to a playlist of the current user.
/// </summary>
public const string ADD_PLAYLIST_SCOPE_ENTRIES = "users/me/playlists/{playlistId}/entries-scope";
/// <summary>
/// The route for the API endpoint that removes an entry from a playlist of the current user.
/// </summary>
public const string REMOVE_PLAYLIST_ENTRY = "users/me/playlists/{playlistId}/entries/{playlistEntryId}";
/// <summary>
/// The route for the API endpoint that moves an entry within a playlist of the current user.
/// </summary>
public const string MOVE_PLAYLIST_ENTRY = "users/me/playlists/{playlistId}/entries/{playlistEntryId}/move";
}
}
@@ -10,9 +10,24 @@ public static partial class ApiRoutes
/// </summary>
public static class Plugins
{
/// <summary>
/// The route for the API endpoint that retrieves the installed plugins.
/// </summary>
public const string GET_PLUGINS = "plugins";
/// <summary>
/// The route for the API endpoint that retrieves the settings of a plugin.
/// </summary>
public const string GET_PLUGIN_SETTINGS = "plugins/{pluginId}/settings";
/// <summary>
/// The route for the API endpoint that updates the settings of a plugin.
/// </summary>
public const string UPDATE_PLUGIN_SETTINGS = "plugins/{pluginId}/settings";
/// <summary>
/// The route for the API endpoint that installs a plugin.
/// </summary>
public const string INSTALL_PLUGIN = "plugins";
}
}
@@ -10,10 +10,29 @@ public static partial class ApiRoutes
/// </summary>
public static class Roles
{
/// <summary>
/// The route for the API endpoint that retrieves the permissions of a role.
/// </summary>
public const string GET_ROLE_PERMISSIONS_BY_ROLE_ID = "auth/roles/{roleId}/permissions";
/// <summary>
/// The route for the API endpoint that retrieves the roles.
/// </summary>
public const string GET_ROLES = "auth/roles";
/// <summary>
/// The route for the API endpoint that creates a role.
/// </summary>
public const string CREATE_ROLE = "auth/roles";
/// <summary>
/// The route for the API endpoint that updates a role.
/// </summary>
public const string UPDATE_ROLE = "auth/roles";
/// <summary>
/// The route for the API endpoint that deletes a role.
/// </summary>
public const string DELETE_ROLE = "auth/roles/{roleId}";
}
}
@@ -10,14 +10,49 @@ public static partial class ApiRoutes
/// </summary>
public static class ScheduledJobs
{
/// <summary>
/// The route for the API endpoint that retrieves the scheduled jobs.
/// </summary>
public const string GET_SCHEDULED_JOBS = "scheduled-jobs";
/// <summary>
/// The route for the API endpoint that adds a scheduled job.
/// </summary>
public const string ADD_SCHEDULED_JOB = "scheduled-jobs";
/// <summary>
/// The route for the API endpoint that retrieves the execution history of the scheduled jobs.
/// </summary>
public const string GET_SCHEDULED_JOB_HISTORY = "scheduled-jobs/history";
/// <summary>
/// The route for the API endpoint that removes a scheduled job.
/// </summary>
public const string REMOVE_SCHEDULED_JOB = "scheduled-jobs/{scheduledJobId}";
/// <summary>
/// The route for the API endpoint that starts a scheduled job.
/// </summary>
public const string START_SCHEDULED_JOB = "scheduled-jobs/{scheduledJobId}/start";
/// <summary>
/// The route for the API endpoint that stops a scheduled job.
/// </summary>
public const string STOP_SCHEDULED_JOB = "scheduled-jobs/{scheduledJobId}/stop";
/// <summary>
/// The route for the API endpoint that fires a scheduled job immediately.
/// </summary>
public const string FIRE_SCHEDULED_JOB = "scheduled-jobs/{scheduledJobId}/fire";
/// <summary>
/// The route for the API endpoint that retrieves the display preferences of the scheduled jobs.
/// </summary>
public const string GET_DISPLAY_PREFERENCES = "scheduled-jobs/display-preferences";
/// <summary>
/// The route for the API endpoint that updates the display preferences of the scheduled jobs.
/// </summary>
public const string UPDATE_DISPLAY_PREFERENCES = "scheduled-jobs/display-preferences";
}
}
@@ -10,15 +10,54 @@ public static partial class ApiRoutes
/// </summary>
public static class Themes
{
/// <summary>
/// The route for the API endpoint that retrieves the installed themes.
/// </summary>
public const string GET_THEMES = "themes";
/// <summary>
/// The route for the API endpoint that installs a theme.
/// </summary>
public const string INSTALL_THEME = "themes";
/// <summary>
/// The route for the API endpoint that retrieves the settings of the installed themes.
/// </summary>
public const string GET_THEME_SETTINGS = "themes/settings";
/// <summary>
/// The route for the API endpoint that retrieves the current theme.
/// </summary>
public const string GET_CURRENT_THEME = "themes/current";
/// <summary>
/// The route for the API endpoint that sets the current theme.
/// </summary>
public const string SET_CURRENT_THEME = "themes/current";
/// <summary>
/// The route for the API endpoint that retrieves a page template of a theme.
/// </summary>
public const string GET_THEME_TEMPLATE = "themes/{themeId}/templates/{*pageKey}";
/// <summary>
/// The route for the API endpoint that retrieves an asset of a theme.
/// </summary>
public const string GET_THEME_ASSET = "themes/{themeId}/assets/{*assetPath}";
/// <summary>
/// The route for the API endpoint that downloads the archive of a theme.
/// </summary>
public const string GET_THEME_ARCHIVE = "themes/{themeId}/archive";
/// <summary>
/// The route for the API endpoint that restores a deleted theme.
/// </summary>
public const string RESTORE_THEME = "themes/{themeId}/restore";
/// <summary>
/// The route for the API endpoint that deletes a theme.
/// </summary>
public const string DELETE_THEME = "themes/{themeId}";
}
}
@@ -10,6 +10,9 @@ public static partial class ApiRoutes
/// </summary>
public static class Thumbnails
{
/// <summary>
/// The route for the thumbnail retrieval API endpoint.
/// </summary>
public const string GET_THUMBNAIL = "thumbnails/get-thumbnail";
}
}
@@ -10,9 +10,24 @@ public static partial class ApiRoutes
/// </summary>
public static class Users
{
/// <summary>
/// The route for the API endpoint that retrieves the settings of the current user.
/// </summary>
public const string GET_USER_SETTINGS = "users/me/settings";
/// <summary>
/// The route for the API endpoint that updates the settings of the current user.
/// </summary>
public const string UPDATE_USER_SETTINGS = "users/me/settings";
/// <summary>
/// The route for the API endpoint that retrieves the playback state of the current user.
/// </summary>
public const string GET_PLAYBACK_STATE = "users/me/settings/playback-state";
/// <summary>
/// The route for the API endpoint that updates the playback state of the current user.
/// </summary>
public const string UPDATE_PLAYBACK_STATE = "users/me/settings/playback-state";
}
}
@@ -10,16 +10,59 @@ public static partial class WebRoutes
/// </summary>
public static class Admin
{
/// <summary>
/// The route for the role management page.
/// </summary>
public const string MANAGE_ROLES = "{culture}/admin/manage-roles";
/// <summary>
/// The route for the permission management page.
/// </summary>
public const string MANAGE_PERMISSIONS = "{culture}/admin/manage-permissions";
/// <summary>
/// The route for the theme management page.
/// </summary>
public const string MANAGE_THEMES = "{culture}/admin/manage-themes";
/// <summary>
/// The route for the action that retrieves the permissions of a role.
/// </summary>
public const string GET_PERMISSIONS_BY_ROLE_ID = "{culture}/admin/api-get-permissions-by-role-id/{roleId}";
/// <summary>
/// The route for the action that retrieves the permissions of a user.
/// </summary>
public const string GET_PERMISSIONS_BY_USER_ID = "{culture}/admin/api-get-permissions-by-user-id/{userId}";
/// <summary>
/// The route for the action that retrieves the role of a user.
/// </summary>
public const string GET_ROLE_BY_USER_ID = "{culture}/admin/api-get-role-by-user-id/{userId}";
/// <summary>
/// The route for the action that retrieves the roles.
/// </summary>
public const string GET_ROLES = "{culture}/admin/api-get-roles";
/// <summary>
/// The route for the action that creates a role.
/// </summary>
public const string CREATE_ROLE = "{culture}/admin/api-create-role";
/// <summary>
/// The route for the action that updates a role.
/// </summary>
public const string UPDATE_ROLE = "{culture}/admin/api-update-role";
/// <summary>
/// The route for the action that deletes a role.
/// </summary>
public const string DELETE_ROLE = "{culture}/admin/api-delete-role/{roleId}";
/// <summary>
/// The route for the action that updates the authorization of a user.
/// </summary>
public const string UPDATE_USER_AUTHORIZATION = "{culture}/admin/api-update-user-authorization";
}
}
@@ -10,17 +10,64 @@ public static partial class WebRoutes
/// </summary>
public static class Authentication
{
/// <summary>
/// The route for the account registration page.
/// </summary>
public const string REGISTER_VIEW = "{culture}/auth/register";
/// <summary>
/// The route for the account login page.
/// </summary>
public const string LOGIN_VIEW = "{culture}/auth/login/{returnUrl?}";
/// <summary>
/// The route for the password recovery page.
/// </summary>
public const string RECOVER_PASSWORD_VIEW = "{culture}/auth/recover-password";
/// <summary>
/// The route for the password change page.
/// </summary>
public const string CHANGE_PASSWORD_VIEW = "{culture}/auth/change-password";
/// <summary>
/// The route for the user profile page.
/// </summary>
public const string PROFILE_VIEW = "{culture}/auth/profile";
/// <summary>
/// The route for the access denied page.
/// </summary>
public const string ACCESS_DENIED_VIEW = "{culture}/auth/access-denied";
/// <summary>
/// The route for the action that logs the current user out.
/// </summary>
public const string LOGOUT = "{culture}/auth/logout";
/// <summary>
/// The route for the action that retrieves an API access token.
/// </summary>
public const string GET_API_ACCESS_TOKEN = "{culture}/auth/api-access-token";
/// <summary>
/// The route for the action that registers an account through the Web application.
/// </summary>
public const string REGISTER = "{culture}/auth/api-register";
/// <summary>
/// The route for the action that logs an account in through the Web application.
/// </summary>
public const string LOGIN = "{culture}/auth/api-login";
/// <summary>
/// The route for the action that recovers the password of an account through the Web application.
/// </summary>
public const string RECOVER_PASSWORD = "{culture}/auth/api-recover-password";
/// <summary>
/// The route for the action that changes the password of an account through the Web application.
/// </summary>
public const string CHANGE_PASSWORD = "{culture}/auth/api-change-password";
}
}
@@ -10,19 +10,74 @@ public static partial class WebRoutes
/// </summary>
public static class Books
{
/// <summary>
/// The route for the books library page.
/// </summary>
public const string INDEX = "{culture}/library/written-content-library/books-library/books";
/// <summary>
/// The route for the action that retrieves the library items of the books library page.
/// </summary>
public const string GET_LIBRARY_ITEMS = "{culture}/library/written-content-library/books-library/books/api-get-library-items";
/// <summary>
/// The route for the book editing page.
/// </summary>
public const string EDIT_BOOK = "{culture}/library/written-content-library/books-library/books/{bookId}";
/// <summary>
/// The route for the action that retrieves the details of a book.
/// </summary>
public const string GET_BOOK_DETAILS = "{culture}/library/written-content-library/books-library/books/{bookId}/api-get-book";
/// <summary>
/// The route for the action that saves a book.
/// </summary>
public const string SAVE_BOOK = "{culture}/library/written-content-library/books-library/books/{bookId}/api-save-book";
/// <summary>
/// The route for the action that deletes a book.
/// </summary>
public const string DELETE_BOOK = "{culture}/library/written-content-library/books-library/books/{bookId}/api-delete-book";
/// <summary>
/// The route for the deleted books page.
/// </summary>
public const string DELETED_BOOKS = "{culture}/library/written-content-library/books-library/books/deleted-items";
/// <summary>
/// The route for the action that restores a deleted book.
/// </summary>
public const string RESTORE_BOOK = "{culture}/library/written-content-library/books-library/books/{bookId}/api-restore-book";
/// <summary>
/// The route for the action that updates the cover of a book.
/// </summary>
public const string UPDATE_BOOK_COVER = "{culture}/library/written-content-library/books-library/books/{bookId}/api-update-cover";
/// <summary>
/// The route for the book reading page.
/// </summary>
public const string READ = "{culture}/library/written-content-library/books-library/books/{bookId}/read";
/// <summary>
/// The route for the action that retrieves the reading manifest of a book.
/// </summary>
public const string GET_READING_MANIFEST = "{culture}/library/written-content-library/books-library/books/{bookId}/api-get-reading-manifest";
/// <summary>
/// The route for the action that retrieves the reading availability of a book.
/// </summary>
public const string GET_READING_AVAILABILITY = "{culture}/library/written-content-library/books-library/books/{bookId}/api-get-reading-availability";
/// <summary>
/// The route for the action that retrieves a reading section of a book.
/// </summary>
public const string GET_READING_SECTION = "{culture}/library/written-content-library/books-library/books/{bookId}/api-get-reading-section";
/// <summary>
/// The route for the action that retrieves a reading resource of a book.
/// </summary>
public const string GET_READING_RESOURCE = "{culture}/library/written-content-library/books-library/books/{bookId}/api-get-reading-resource";
}
}
@@ -10,6 +10,9 @@ public static partial class WebRoutes
/// </summary>
public static class Directories
{
/// <summary>
/// The route for the action that retrieves the subdirectories of a directory.
/// </summary>
public const string GET_DIRECTORIES = "directories/api-get-directories";
}
}
@@ -10,6 +10,9 @@ public static partial class WebRoutes
/// </summary>
public static class Drives
{
/// <summary>
/// The route for the action that retrieves the drives of the host machine.
/// </summary>
public const string GET_DRIVES = "drives/api-get-drives";
}
}
@@ -10,10 +10,29 @@ public static partial class WebRoutes
/// </summary>
public static class Favorites
{
/// <summary>
/// The route for the favorites page.
/// </summary>
public const string INDEX = "{culture}/favorites";
/// <summary>
/// The route for the action that retrieves the favorites of the current user.
/// </summary>
public const string GET_FAVORITES = "{culture}/favorites/api-get-favorites";
/// <summary>
/// The route for the action that retrieves the favorite status of a media item for the current user.
/// </summary>
public const string GET_FAVORITE_STATUS = "{culture}/favorites/api-get-favorite-status";
/// <summary>
/// The route for the action that adds a media item to the favorites of the current user.
/// </summary>
public const string ADD_FAVORITE = "{culture}/favorites/api-add-favorite";
/// <summary>
/// The route for the action that removes a media item from the favorites of the current user.
/// </summary>
public const string REMOVE_FAVORITE = "{culture}/favorites/{mediaKind}/{mediaItemId}/api-remove-favorite";
}
}
@@ -10,6 +10,9 @@ public static partial class WebRoutes
/// </summary>
public static class FileSystem
{
/// <summary>
/// The route for the action that retrieves the file system type of the host machine.
/// </summary>
public const string GET_TYPE = "file-system/api-get-type";
}
}
@@ -10,7 +10,14 @@ public static partial class WebRoutes
/// </summary>
public static class Files
{
/// <summary>
/// The route for the action that retrieves the files of a directory as a tree.
/// </summary>
public const string GET_TREE_FILES = "files/api-get-tree-files";
/// <summary>
/// The route for the action that retrieves the files of a directory.
/// </summary>
public const string GET_FILES = "files/api-get-files";
}
}
@@ -10,10 +10,29 @@ public static partial class WebRoutes
/// </summary>
public static class Home
{
/// <summary>
/// The route for the home page at the root of the application.
/// </summary>
public const string INDEX = "/";
/// <summary>
/// The route for the culture-specific home page.
/// </summary>
public const string INDEX_CULTURED = "{culture}";
/// <summary>
/// The route for the privacy policy page.
/// </summary>
public const string PRIVACY = "{culture}/privacy";
/// <summary>
/// The route for the error page.
/// </summary>
public const string ERROR = "{culture}/error";
/// <summary>
/// The route for the not found page.
/// </summary>
public const string NOT_FOUND = "{culture}/not-found";
}
}
@@ -10,6 +10,9 @@ public static partial class WebRoutes
/// </summary>
public static class Language
{
/// <summary>
/// The route for the action that sets the display language of the Web application.
/// </summary>
public const string SET_LANGUAGE = "{culture}/tools/language/set-language";
}
}
@@ -10,24 +10,99 @@ public static partial class WebRoutes
/// </summary>
public static class LibraryManagement
{
/// <summary>
/// The route for the library management page.
/// </summary>
public const string INDEX = "{culture}/libraries/manage";
/// <summary>
/// The route for the library creation page.
/// </summary>
public const string ADD_LIBRARY = "{culture}/libraries/manage/item";
/// <summary>
/// The route for the library editing page.
/// </summary>
public const string EDIT_LIBRARY = "{culture}/libraries/manage/item/{id}";
/// <summary>
/// The route for the action that retrieves the media libraries.
/// </summary>
public const string GET_LIBRARIES = "{culture}/libraries/manage/api-get-libraries";
/// <summary>
/// The route for the action that retrieves the enabled media libraries.
/// </summary>
public const string GET_ENABLED_LIBRARIES = "{culture}/libraries/manage/api-get-enabled-libraries";
/// <summary>
/// The route for the action that saves a media library.
/// </summary>
public const string SAVE_LIBRARY = "{culture}/libraries/manage/api-item";
/// <summary>
/// The route for the action that deletes a media library.
/// </summary>
public const string DELETE_LIBRARY = "{culture}/libraries/manage/api-item/{id}";
/// <summary>
/// The route for the action that retrieves the scans currently running on the media libraries.
/// </summary>
public const string GET_RUNNING_LIBRARY_SCANS = "{culture}/libraries/manage/api-get-running-library-scans";
/// <summary>
/// The route for the action that scans all media libraries.
/// </summary>
public const string SCAN_LIBRARIES = "{culture}/libraries/manage/api-scan-libraries";
/// <summary>
/// The route for the action that scans a single media library.
/// </summary>
public const string SCAN_LIBRARY = "{culture}/libraries/manage/api-scan-library/{id}";
/// <summary>
/// The route for the action that cancels the scans running on all media libraries.
/// </summary>
public const string CANCEL_LIBRARIES_SCAN = "{culture}/libraries/manage/api-cancel-libraries-scan";
/// <summary>
/// The route for the action that cancels a scan running on a single media library.
/// </summary>
public const string CANCEL_LIBRARY_SCAN = "{culture}/libraries/manage/{libraryId}/api-cancel-library-scan/{scanId}";
/// <summary>
/// The route for the action that retrieves the path template parts of a library type.
/// </summary>
public const string GET_LIBRARY_PATH_TEMPLATE_PARTS = "{culture}/libraries/manage/api-get-path-template-parts/{libraryType}";
/// <summary>
/// The route for the action that retrieves the metadata providers of a media library.
/// </summary>
public const string GET_METADATA_PROVIDERS = "{culture}/libraries/manage/api-get-metadata-providers/{libraryId}";
/// <summary>
/// The route for the action that retrieves the artwork providers of a media library.
/// </summary>
public const string GET_ARTWORK_PROVIDERS = "{culture}/libraries/manage/api-get-artwork-providers/{libraryId}";
/// <summary>
/// The route for the action that retrieves the book readers of a media library.
/// </summary>
public const string GET_BOOK_READERS = "{culture}/libraries/manage/api-get-book-readers/{libraryId}";
/// <summary>
/// The route for the action that retrieves the metadata providers of a library type.
/// </summary>
public const string GET_LIBRARY_TYPE_METADATA_PROVIDERS = "{culture}/libraries/manage/api-get-library-type-metadata-providers/{libraryType}";
/// <summary>
/// The route for the action that retrieves the artwork providers of a library type.
/// </summary>
public const string GET_LIBRARY_TYPE_ARTWORK_PROVIDERS = "{culture}/libraries/manage/api-get-library-type-artwork-providers/{libraryType}";
/// <summary>
/// The route for the action that retrieves the book readers of a library type.
/// </summary>
public const string GET_LIBRARY_TYPE_BOOK_READERS = "{culture}/libraries/manage/api-get-library-type-book-readers/{libraryType}";
}
}
@@ -10,17 +10,64 @@ public static partial class WebRoutes
/// </summary>
public static class LibraryStatistics
{
/// <summary>
/// The route for the library statistics page.
/// </summary>
public const string INDEX = "{culture}/library/statistics";
/// <summary>
/// The route for the action that retrieves the consumption statistics of the selected user.
/// </summary>
public const string GET_STATISTICS = "{culture}/library/statistics/api-get-statistics";
/// <summary>
/// The route for the action that retrieves the consumption statistics of all users.
/// </summary>
public const string GET_ALL_USERS_STATISTICS = "{culture}/library/statistics/api-get-all-users-statistics";
/// <summary>
/// The route for the action that retrieves the recently consumed media items of the selected user.
/// </summary>
public const string GET_RECENTLY_CONSUMED = "{culture}/library/statistics/api-get-recently-consumed";
/// <summary>
/// The route for the action that retrieves the most consumed media items of the selected user.
/// </summary>
public const string GET_MOST_CONSUMED = "{culture}/library/statistics/api-get-most-consumed";
/// <summary>
/// The route for the action that retrieves the tag consumption statistics of the selected user.
/// </summary>
public const string GET_TAG_CONSUMPTION = "{culture}/library/statistics/api-get-tag-consumption";
/// <summary>
/// The route for the action that retrieves the genre consumption statistics of the selected user.
/// </summary>
public const string GET_GENRE_CONSUMPTION = "{culture}/library/statistics/api-get-genre-consumption";
/// <summary>
/// The route for the action that retrieves the enabled media libraries available for the statistics filter.
/// </summary>
public const string GET_LIBRARIES = "{culture}/library/statistics/api-get-libraries";
/// <summary>
/// The route for the action that retrieves the users available for the statistics user selector.
/// </summary>
public const string GET_USERS = "{culture}/library/statistics/api-get-users";
/// <summary>
/// The route for the action that deletes a media item from the consumption history.
/// </summary>
public const string DELETE_CONSUMPTION_ITEM_HISTORY = "{culture}/library/statistics/api-delete-consumption-item-history";
/// <summary>
/// The route for the action that clears the consumption history.
/// </summary>
public const string CLEAR_CONSUMPTION_HISTORY = "{culture}/library/statistics/api-clear-consumption-history";
/// <summary>
/// The route for the action that clears the media resume points.
/// </summary>
public const string CLEAR_RESUME_POINTS = "{culture}/library/statistics/api-clear-resume-points";
}
}
@@ -10,10 +10,29 @@ public static partial class WebRoutes
/// </summary>
public static class MediaConsumption
{
/// <summary>
/// The route for the action that starts the consumption of a media item.
/// </summary>
public const string START_CONSUMPTION = "{culture}/media-consumption/api-start-consumption/{libraryId}/{mediaKind}/{mediaItemId}";
/// <summary>
/// The route for the action that reports the progress of a consumption record.
/// </summary>
public const string REPORT_CONSUMPTION_PROGRESS = "{culture}/media-consumption/api-report-consumption-progress/{recordId}";
/// <summary>
/// The route for the action that completes a consumption record.
/// </summary>
public const string COMPLETE_CONSUMPTION = "{culture}/media-consumption/api-complete-consumption/{recordId}";
/// <summary>
/// The route for the action that stops a consumption record.
/// </summary>
public const string STOP_CONSUMPTION = "{culture}/media-consumption/api-stop-consumption/{recordId}";
/// <summary>
/// The route for the action that retrieves the resume point of a media item of the current user.
/// </summary>
public const string GET_RESUME_POINT = "{culture}/media-consumption/api-get-resume-point/{mediaKind}/{mediaItemId}";
}
}
@@ -10,31 +10,134 @@ public static partial class WebRoutes
/// </summary>
public static class Music
{
/// <summary>
/// The route for the artists page of the music library.
/// </summary>
public const string ARTISTS_INDEX = "{culture}/library/audio-library/music-library/artists";
/// <summary>
/// The route for the deleted music items page.
/// </summary>
public const string DELETED_MUSIC_ITEMS = "{culture}/library/audio-library/music-library/deleted-items";
/// <summary>
/// The route for the action that retrieves the artists of the music library.
/// </summary>
public const string GET_ARTISTS = "{culture}/library/audio-library/music-library/artists/api-get-artists";
/// <summary>
/// The route for the artist editing page.
/// </summary>
public const string ARTIST = "{culture}/library/audio-library/music-library/artists/{artistId}";
/// <summary>
/// The route for the action that retrieves the details of an artist.
/// </summary>
public const string GET_ARTIST = "{culture}/library/audio-library/music-library/artists/{artistId}/api-get-artist";
/// <summary>
/// The route for the action that saves an artist.
/// </summary>
public const string SAVE_ARTIST = "{culture}/library/audio-library/music-library/artists/{artistId}/api-save-artist";
/// <summary>
/// The route for the action that updates the cover of an artist.
/// </summary>
public const string UPDATE_ARTIST_COVER = "{culture}/library/audio-library/music-library/artists/{artistId}/api-update-cover";
/// <summary>
/// The route for the action that deletes an artist.
/// </summary>
public const string DELETE_ARTIST = "{culture}/library/audio-library/music-library/artists/{artistId}/api-delete-artist";
/// <summary>
/// The route for the action that restores a deleted artist.
/// </summary>
public const string RESTORE_ARTIST = "{culture}/library/audio-library/music-library/artists/{artistId}/api-restore-artist";
/// <summary>
/// The route for the action that retrieves the albums of an artist.
/// </summary>
public const string GET_ARTIST_ALBUMS = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/api-get-albums";
/// <summary>
/// The route for the album editing page.
/// </summary>
public const string ALBUM = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}";
/// <summary>
/// The route for the action that retrieves the details of an album.
/// </summary>
public const string GET_ALBUM = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/api-get-album";
/// <summary>
/// The route for the action that saves an album.
/// </summary>
public const string SAVE_ALBUM = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/api-save-album";
/// <summary>
/// The route for the action that updates the cover of an album.
/// </summary>
public const string UPDATE_ALBUM_COVER = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/api-update-cover";
/// <summary>
/// The route for the action that deletes an album.
/// </summary>
public const string DELETE_ALBUM = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/api-delete-album";
/// <summary>
/// The route for the action that restores a deleted album.
/// </summary>
public const string RESTORE_ALBUM = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/api-restore-album";
/// <summary>
/// The route for the action that retrieves the tracks of an album.
/// </summary>
public const string GET_ALBUM_TRACKS = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/api-get-tracks";
/// <summary>
/// The route for the action that shuffles the tracks of the music library.
/// </summary>
public const string SHUFFLE_TRACKS = "{culture}/library/audio-library/music-library/tracks/api-shuffle-tracks";
/// <summary>
/// The route for the track editing page.
/// </summary>
public const string TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
/// <summary>
/// The route for the action that retrieves the details of a track.
/// </summary>
public const string GET_TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-get-track";
/// <summary>
/// The route for the action that saves a track.
/// </summary>
public const string SAVE_TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-save-track";
/// <summary>
/// The route for the action that deletes a track.
/// </summary>
public const string DELETE_TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-delete-track";
/// <summary>
/// The route for the action that restores a deleted track.
/// </summary>
public const string RESTORE_TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-restore-track";
/// <summary>
/// The route for the action that streams a track.
/// </summary>
public const string STREAM_TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-stream-track";
/// <summary>
/// The route for the action that streams a segment of a track delivery.
/// </summary>
public const string STREAM_TRACK_SEGMENT = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-stream-track-segment/{deliveryId}/{segmentIndex}";
/// <summary>
/// The route for the action that retrieves the playback manifest of a track.
/// </summary>
public const string GET_PLAYBACK_MANIFEST = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-get-playback-manifest";
}
}
@@ -10,11 +10,34 @@ public static partial class WebRoutes
/// </summary>
public static class Path
{
/// <summary>
/// The route for the action that retrieves the root of a path.
/// </summary>
public const string GET_PATH_ROOT = "path/api-get-path-root";
/// <summary>
/// The route for the action that retrieves the separator of the current platform.
/// </summary>
public const string GET_PATH_SEPARATOR = "path/api-get-path-separator";
/// <summary>
/// The route for the action that retrieves the parent of a path.
/// </summary>
public const string GET_PATH_PARENT = "path/api-get-path-parent";
/// <summary>
/// The route for the action that splits a path into its parts.
/// </summary>
public const string SPLIT_PATH = "path/api-split";
/// <summary>
/// The route for the action that validates a path.
/// </summary>
public const string VALIDATE_PATH = "path/api-validate";
/// <summary>
/// The route for the action that checks whether a path exists.
/// </summary>
public const string CHECK_PATH_EXISTS = "path/api-check-path-exists";
}
}
@@ -10,18 +10,69 @@ public static partial class WebRoutes
/// </summary>
public static class Playlists
{
/// <summary>
/// The route for the playlists page.
/// </summary>
public const string INDEX = "{culture}/playlists";
/// <summary>
/// The route for the action that retrieves the playlists of the current user.
/// </summary>
public const string GET_PLAYLISTS = "{culture}/playlists/api-get-playlists";
/// <summary>
/// The route for the action that creates a playlist for the current user.
/// </summary>
public const string CREATE_PLAYLIST = "{culture}/playlists/api-create-playlist";
/// <summary>
/// The route for the playlist creation page.
/// </summary>
public const string ADD = "{culture}/playlists/item";
/// <summary>
/// The route for the playlist details page.
/// </summary>
public const string ITEM = "{culture}/playlists/item/{playlistId}";
/// <summary>
/// The route for the action that retrieves a playlist of the current user.
/// </summary>
public const string GET_PLAYLIST = "{culture}/playlists/item/{playlistId}/api-get-playlist";
/// <summary>
/// The route for the action that updates a playlist of the current user.
/// </summary>
public const string UPDATE_PLAYLIST = "{culture}/playlists/item/{playlistId}/api-update-playlist";
/// <summary>
/// The route for the action that deletes a playlist of the current user.
/// </summary>
public const string DELETE_PLAYLIST = "{culture}/playlists/item/{playlistId}/api-delete-playlist";
/// <summary>
/// The route for the action that adds an entry to a playlist of the current user.
/// </summary>
public const string ADD_PLAYLIST_ENTRY = "{culture}/playlists/item/{playlistId}/entries/api-add-entry";
/// <summary>
/// The route for the action that adds multiple entries to a playlist of the current user.
/// </summary>
public const string ADD_PLAYLIST_ENTRIES = "{culture}/playlists/item/{playlistId}/api-add-entries";
/// <summary>
/// The route for the action that adds every track of a library, an artist, or an album to a playlist of the current user.
/// </summary>
public const string ADD_PLAYLIST_SCOPE_ENTRIES = "{culture}/playlists/item/{playlistId}/api-add-scope-entries";
/// <summary>
/// The route for the action that removes an entry from a playlist of the current user.
/// </summary>
public const string REMOVE_PLAYLIST_ENTRY = "{culture}/playlists/item/{playlistId}/entries/{playlistEntryId}/api-remove-entry";
/// <summary>
/// The route for the action that moves an entry within a playlist of the current user.
/// </summary>
public const string MOVE_PLAYLIST_ENTRY = "{culture}/playlists/item/{playlistId}/entries/{playlistEntryId}/api-move-entry";
}
}
@@ -10,10 +10,29 @@ public static partial class WebRoutes
/// </summary>
public static class Plugins
{
/// <summary>
/// The route for the plugin management page.
/// </summary>
public const string INDEX = "{culture}/admin/manage-plugins";
/// <summary>
/// The route for the action that retrieves the installed plugins.
/// </summary>
public const string GET_PLUGINS = "{culture}/admin/manage-plugins/api-get-plugins";
/// <summary>
/// The route for the action that retrieves the settings of a plugin.
/// </summary>
public const string GET_PLUGIN_SETTINGS = "{culture}/admin/manage-plugins/api-get-plugin-settings/{pluginId}";
/// <summary>
/// The route for the action that updates the settings of a plugin.
/// </summary>
public const string UPDATE_PLUGIN_SETTINGS = "{culture}/admin/manage-plugins/api-update-plugin-settings";
/// <summary>
/// The route for the action that installs a plugin.
/// </summary>
public const string INSTALL_PLUGIN = "{culture}/admin/manage-plugins/api-install-plugin";
}
}
@@ -10,15 +10,54 @@ public static partial class WebRoutes
/// </summary>
public static class Scheduler
{
/// <summary>
/// The route for the scheduled jobs page.
/// </summary>
public const string INDEX = "{culture}/admin/scheduled-jobs";
/// <summary>
/// The route for the action that retrieves the scheduled jobs.
/// </summary>
public const string GET_SCHEDULED_JOBS = "{culture}/admin/api-scheduled-jobs";
/// <summary>
/// The route for the action that adds a scheduled job.
/// </summary>
public const string ADD_SCHEDULED_JOB = "{culture}/admin/api-scheduled-jobs/add";
/// <summary>
/// The route for the action that retrieves the execution history of the scheduled jobs.
/// </summary>
public const string GET_SCHEDULED_JOB_HISTORY = "{culture}/admin/api-scheduled-jobs/history";
/// <summary>
/// The route for the action that removes a scheduled job.
/// </summary>
public const string REMOVE_SCHEDULED_JOB = "{culture}/admin/api-scheduled-jobs/{scheduledJobId}";
/// <summary>
/// The route for the action that starts a scheduled job.
/// </summary>
public const string START_SCHEDULED_JOB = "{culture}/admin/api-scheduled-jobs/{scheduledJobId}/start";
/// <summary>
/// The route for the action that stops a scheduled job.
/// </summary>
public const string STOP_SCHEDULED_JOB = "{culture}/admin/api-scheduled-jobs/{scheduledJobId}/stop";
/// <summary>
/// The route for the action that fires a scheduled job immediately.
/// </summary>
public const string FIRE_SCHEDULED_JOB = "{culture}/admin/api-scheduled-jobs/{scheduledJobId}/fire";
/// <summary>
/// The route for the action that retrieves the display preferences of the scheduled jobs.
/// </summary>
public const string GET_DISPLAY_PREFERENCES = "{culture}/admin/api-scheduled-jobs/display-preferences";
/// <summary>
/// The route for the action that updates the display preferences of the scheduled jobs.
/// </summary>
public const string UPDATE_DISPLAY_PREFERENCES = "{culture}/admin/api-scheduled-jobs/display-preferences";
}
}
@@ -10,10 +10,29 @@ public static partial class WebRoutes
/// </summary>
public static class Settings
{
/// <summary>
/// The route for the user settings page.
/// </summary>
public const string INDEX = "{culture}/tools/settings";
/// <summary>
/// The route for the action that retrieves the settings of the current user.
/// </summary>
public const string GET_USER_SETTINGS = "{culture}/tools/settings/api-get-user-settings";
/// <summary>
/// The route for the action that updates the settings of the current user.
/// </summary>
public const string UPDATE_USER_SETTINGS = "{culture}/tools/settings/api-update-user-settings";
/// <summary>
/// The route for the action that retrieves the playback state of the current user.
/// </summary>
public const string GET_PLAYBACK_STATE = "{culture}/tools/settings/api-get-playback-state";
/// <summary>
/// The route for the action that updates the playback state of the current user.
/// </summary>
public const string UPDATE_PLAYBACK_STATE = "{culture}/tools/settings/api-update-playback-state";
}
}
@@ -10,12 +10,39 @@ public static partial class WebRoutes
/// </summary>
public static class Themes
{
/// <summary>
/// The route for the action that retrieves the installed themes.
/// </summary>
public const string GET_THEMES = "{culture}/admin/themes/api-get-themes";
/// <summary>
/// The route for the action that installs a theme.
/// </summary>
public const string INSTALL_THEME = "{culture}/admin/themes/api-install-theme";
/// <summary>
/// The route for the action that sets the current theme.
/// </summary>
public const string SET_CURRENT_THEME = "{culture}/admin/themes/api-set-current-theme";
/// <summary>
/// The route for the action that restores a deleted theme.
/// </summary>
public const string RESTORE_THEME = "{culture}/admin/themes/api-restore-theme/{themeId}";
/// <summary>
/// The route for the action that deletes a theme.
/// </summary>
public const string DELETE_THEME = "{culture}/admin/themes/api-delete-theme/{themeId}";
/// <summary>
/// The route for the action that downloads the archive of a theme.
/// </summary>
public const string DOWNLOAD_THEME = "{culture}/admin/themes/api-download-theme/{themeId}";
/// <summary>
/// The route for the action that serves the assets of a theme.
/// </summary>
public const string THEME_ASSETS = "theme-assets/{themeId}/{*path}";
}
}
@@ -10,6 +10,9 @@ public static partial class WebRoutes
/// </summary>
public static class Thumbnails
{
/// <summary>
/// The route for the action that retrieves a thumbnail.
/// </summary>
public const string GET_THUMBNAIL = "thumbnails/api-get-thumbnail";
}
}
@@ -308,7 +308,7 @@ public static class ValidatorUtilities
/// </summary>
/// <remarks>
/// If the property is <see langword="null"/> or not a string, this rule fails (use
/// <see cref="When{TRequest, TProperty}(IRuleBuilder{TRequest, TProperty}, Func{TRequest, bool})"/> to skip optional properties).
/// <c>When</c> to skip optional properties).
/// </remarks>
/// <typeparam name="TRequest">The type of the request being validated.</typeparam>
/// <typeparam name="TProperty">The type of the property being validated.</typeparam>
@@ -29,7 +29,7 @@ public class FileSystemBrowserViewComponent : ViewComponent
}
/// <summary>
/// Invokes the <see cref="FileSystemBrowser"/> view component, rendering the theme template of the file system browser when available.
/// Invokes the <c>FileSystemBrowser</c> view component, rendering the theme template of the file system browser when available.
/// </summary>
/// <returns>An <see cref="IViewComponentResult"/> that renders the themed component, or the application fallback view when the theme template is unavailable.</returns>
public async Task<IViewComponentResult> InvokeAsync()
@@ -5,8 +5,7 @@
<ImplicitUsings>disable</ImplicitUsings>
<BaseOutputPath>$(SolutionDir)..\bin\web\</BaseOutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904;EXTEXP0018</WarningsNotAsErrors>
<WarningsNotAsErrors>$(WarningsNotAsErrors);EXTEXP0018</WarningsNotAsErrors>
<UserSecretsId>10a94da9-18ed-4c70-a9da-b461e08958c4</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<ContainerRepository>lumina-web</ContainerRepository>