From c41bd24760dc22993d3aa86f55cd4e42b22782f3 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Sat, 26 Sep 2026 13:05:02 +0300 Subject: [PATCH] Updates the 401 response examples across the endpoint summaries --- .../GetPermissionsEndpointSummary.cs | 4 ++-- .../Roles/AddRole/AddRoleEndpointSummary.cs | 4 ++-- .../DeleteRole/DeleteRoleEndpointSummary.cs | 4 ++-- .../GetRolePermissionsEndpointSummary.cs | 4 ++-- .../Roles/GetRoles/GetRolesEndpointSummary.cs | 4 ++-- .../UpdateRole/UpdateRoleEndpointSummary.cs | 4 ++-- .../GetDirectoriesEndpointSummary.cs | 10 +++++----- .../Drives/GetDrives/GetDrivesEndpointSummary.cs | 4 ++-- .../FileSystem/GetType/GetTypeEndpointSummary.cs | 4 ++-- .../Files/GetFiles/GetFilesEndpointSummary.cs | 10 +++++----- .../GetTreeFiles/GetTreeFilesEndpointSummary.cs | 10 +++++----- .../CheckPathExistsEndpointSummary.cs | 10 +++++----- .../CombinePath/CombinePathEndpointSummary.cs | 4 ++-- .../GetPathParentEndpointSummary.cs | 4 ++-- .../GetPathRoot/GetPathRootEndpointSummary.cs | 4 ++-- .../GetPathSeparatorEndpointSummary.cs | 4 ++-- .../Path/SplitPath/SplitPathEndpointSummary.cs | 4 ++-- .../ValidatePath/ValidatePathEndpointSummary.cs | 4 ++-- .../GetThumbnail/GetThumbnailEndpointSummary.cs | 4 ++-- .../AddLibrary/AddLibraryEndpointSummary.cs | 4 ++-- .../CancelLibrariesScanEndpointSummary.cs | 4 ++-- .../CancelLibraryScanEndpointSummary.cs | 4 ++-- .../DeleteLibraryEndpointSummary.cs | 4 ++-- .../GetEnabledLibrariesEndpointSummary.cs | 4 ++-- .../GetLibraries/GetLibrariesEndpointSummary.cs | 4 ++-- .../GetLibrary/GetLibraryEndpointSummary.cs | 4 ++-- .../GetLibraryScanProgressEndpointSummary.cs | 4 ++-- .../ScanLibrariesEndpointSummary.cs | 4 ++-- .../ScanLibrary/ScanLibraryEndpointSummary.cs | 4 ++-- .../UpdateLibraryEndpointSummary.cs | 4 ++-- .../GetLibraryArtworkProvidersEndpointSummary.cs | 4 ++-- ...GetLibraryMetadataProvidersEndpointSummary.cs | 4 ++-- .../GetPluginSettingsEndpointSummary.cs | 4 ++-- .../GetPlugins/GetPluginsEndpointSummary.cs | 4 ++-- .../InstallPluginEndpointSummary.cs | 4 ++-- ...rderLibraryArtworkProvidersEndpointSummary.cs | 4 ++-- ...derLibraryMetadataProvidersEndpointSummary.cs | 4 ++-- ...braryArtworkProviderEnabledEndpointSummary.cs | 4 ++-- ...raryMetadataProviderEnabledEndpointSummary.cs | 4 ++-- .../UpdatePluginSettingsEndpointSummary.cs | 4 ++-- .../AddScheduledJobEndpointSummary.cs | 4 ++-- .../FireScheduledJobEndpointSummary.cs | 4 ++-- .../GetScheduledJobHistoryEndpointSummary.cs | 4 ++-- .../GetScheduledJobsEndpointSummary.cs | 4 ++-- ...SchedulerDisplayPreferencesEndpointSummary.cs | 4 ++-- .../RemoveScheduledJobEndpointSummary.cs | 4 ++-- .../StartScheduledJobEndpointSummary.cs | 4 ++-- .../StopScheduledJobEndpointSummary.cs | 4 ++-- ...SchedulerDisplayPreferencesEndpointSummary.cs | 4 ++-- .../DeleteTheme/DeleteThemeEndpointSummary.cs | 4 ++-- .../InstallTheme/InstallThemeEndpointSummary.cs | 4 ++-- .../RestoreTheme/RestoreThemeEndpointSummary.cs | 4 ++-- .../SetCurrentThemeEndpointSummary.cs | 4 ++-- .../GetThemeArchiveEndpointSummary.cs | 4 ++-- .../GetThemes/GetThemesEndpointSummary.cs | 4 ++-- .../ChangePasswordEndpointSummary.cs | 4 ++-- .../GetUsers/GetUsersEndpointSummary.cs | 4 ++-- .../GetAuthorizationEndpointSummary.cs | 4 ++-- .../GetUserPermissionsEndpointSummary.cs | 16 ++++++++-------- .../GetUserRole/GetUserRoleEndpointSummary.cs | 4 ++-- ...pdateUserRoleAndPermissionsEndpointSummary.cs | 4 ++-- .../GetUserSettingsEndpointSummary.cs | 4 ++-- .../UpdateUserSettingsEndpointSummary.cs | 4 ++-- 63 files changed, 144 insertions(+), 144 deletions(-) diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Permissions/GetPermissions/GetPermissionsEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Permissions/GetPermissions/GetPermissionsEndpointSummary.cs index 373f0ad2..e0eaa893 100644 --- a/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Permissions/GetPermissions/GetPermissionsEndpointSummary.cs +++ b/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Permissions/GetPermissions/GetPermissionsEndpointSummary.cs @@ -39,7 +39,7 @@ public class GetPermissionsEndpointSummary : Summary type = "https://tools.ietf.org/html/rfc7235#section-3.1", status = 401, title = "Unauthorized", - detail = "You are not authorized", + detail = "Authentication failed", instance = "/api/v1/auth/roles" }, new @@ -62,7 +62,7 @@ public class AddRoleEndpointSummary : Summary type = "https://tools.ietf.org/html/rfc7235#section-3.1", status = 401, title = "Unauthorized", - detail = "Invalid token: The token expired at '01/01/2024 01:00:00'", + detail = "The token has expired", instance = "/api/v1/auth/roles" }, new diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpointSummary.cs index cab80097..aa16544a 100644 --- a/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpointSummary.cs +++ b/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpointSummary.cs @@ -40,7 +40,7 @@ public class DeleteRoleEndpointSummary : Summary type = "https://tools.ietf.org/html/rfc7235#section-3.1", status = 401, title = "Unauthorized", - detail = "You are not authorized", + detail = "Authentication failed", instance = "/api/v1/auth/roles" }, new @@ -42,7 +42,7 @@ public class GetRolesEndpointSummary : Summary type = "https://tools.ietf.org/html/rfc7235#section-3.1", status = 401, title = "Unauthorized", - detail = "Invalid token: The token expired at '01/01/2024 01:00:00'", + detail = "The token has expired", instance = "/api/v1/auth/roles" }, new diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/UpdateRole/UpdateRoleEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/UpdateRole/UpdateRoleEndpointSummary.cs index d0c9117c..bc181527 100644 --- a/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/UpdateRole/UpdateRoleEndpointSummary.cs +++ b/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/UpdateRole/UpdateRoleEndpointSummary.cs @@ -56,7 +56,7 @@ public class UpdateRoleEndpointSummary : Summary r.Path, "The file system path for which to get the directories. Required."); - RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden file system elements or not. Optional."); + RequestParam(r => r.ShouldIncludeHiddenElements, "Whether to include hidden file system elements or not. Optional."); Response(200, "The list of directories for the specified path is returned.", example: new DirectoryResponse[] { @@ -49,7 +49,7 @@ public class GetDirectoriesEndpointSummary : Summary type = "https://tools.ietf.org/html/rfc7235#section-3.1", status = 401, title = "Unauthorized", - detail = "You are not authorized", + detail = "Authentication failed", instance = "/api/v1/drives/get-drives" }, new @@ -44,7 +44,7 @@ public class GetDrivesEndpointSummary : Summary type = "https://tools.ietf.org/html/rfc7235#section-3.1", status = 401, title = "Unauthorized", - detail = "Invalid token: The token expired at '01/01/2024 01:00:00'", + detail = "The token has expired", instance = "/api/v1/drives/get-drives" }, new diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpointSummary.cs index 9ca34185..f6010ea9 100644 --- a/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpointSummary.cs +++ b/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpointSummary.cs @@ -34,7 +34,7 @@ public class GetTypeEndpointSummary : Summary type = "https://tools.ietf.org/html/rfc7235#section-3.1", status = 401, title = "Unauthorized", - detail = "You are not authorized", + detail = "Authentication failed", instance = "/api/v1/file-system/get-type" }, new @@ -42,7 +42,7 @@ public class GetTypeEndpointSummary : Summary type = "https://tools.ietf.org/html/rfc7235#section-3.1", status = 401, title = "Unauthorized", - detail = "Invalid token: The token expired at '01/01/2024 01:00:00'", + detail = "The token has expired", instance = "/api/v1/file-system/get-type" }, new diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/Files/GetFiles/GetFilesEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/Files/GetFiles/GetFilesEndpointSummary.cs index 690e8ac2..0616d7dc 100644 --- a/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/Files/GetFiles/GetFilesEndpointSummary.cs +++ b/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/Files/GetFiles/GetFilesEndpointSummary.cs @@ -26,15 +26,15 @@ public class GetFilesEndpointSummary : Summary r.Path, "The file system path for which to get the files. Required."); - RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden file system elements or not. Optional."); + RequestParam(r => r.ShouldIncludeHiddenElements, "Whether to include hidden file system elements or not. Optional."); Response(200, "The list of files is returned.", example: new FileResponse[] { @@ -50,7 +50,7 @@ public class GetFilesEndpointSummary : Summary r.Path, "The file system path for which to get the tree files. Required."); - RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden file system elements or not. Optional."); + RequestParam(r => r.ShouldIncludeHiddenElements, "Whether to include hidden file system elements or not. Optional."); Response(200, "The tree structure of files is returned.", example: new FileSystemTreeNodeResponse[] { @@ -50,7 +50,7 @@ public class GetTreeFilesEndpointSummary : Summary r.Path, "The file system path to check the exitence of. Required."); - RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden elements in the search results, or not. Optional."); + RequestParam(r => r.ShouldIncludeHiddenElements, "Whether to include hidden elements in the search results, or not. Optional."); Response(200, "Indicates whether the file system path exists.", example: new PathExistsResponse( @@ -48,7 +48,7 @@ public class CheckPathExistsEndpointSummary : Summary type = "https://tools.ietf.org/html/rfc7235#section-3.1", status = 401, title = "Unauthorized", - detail = "You are not authorized", + detail = "Authentication failed", instance = "/api/v1/themes" }, new @@ -68,7 +68,7 @@ public class GetThemesEndpointSummary : Summary type = "https://tools.ietf.org/html/rfc7235#section-3.1", status = 401, title = "Unauthorized", - detail = "Invalid token: The token expired at '01/01/2024 01:00:00'", + detail = "The token has expired", instance = "/api/v1/themes" }, new diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordEndpointSummary.cs index f63eb8dc..060740e6 100644 --- a/src/Lumina.Presentation.Api/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordEndpointSummary.cs +++ b/src/Lumina.Presentation.Api/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordEndpointSummary.cs @@ -47,7 +47,7 @@ public class ChangePasswordEndpointSummary : Summary type = "https://tools.ietf.org/html/rfc7235#section-3.1", status = 401, title = "Unauthorized", - detail = "You are not authorized", + detail = "Authentication failed", instance = "/api/v1/auth/users" }, new @@ -42,7 +42,7 @@ public class GetUsersEndpointSummary : Summary type = "https://tools.ietf.org/html/rfc7235#section-3.1", status = 401, title = "Unauthorized", - detail = "Invalid token: The token expired at '01/01/2024 01:00:00'", + detail = "The token has expired", instance = "/api/v1/auth/users" }, new diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/UsersManagement/Authorization/GetAuthorization/GetAuthorizationEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/UsersManagement/Authorization/GetAuthorization/GetAuthorizationEndpointSummary.cs index 1de71e92..062e5e36 100644 --- a/src/Lumina.Presentation.Api/Core/Endpoints/UsersManagement/Authorization/GetAuthorization/GetAuthorizationEndpointSummary.cs +++ b/src/Lumina.Presentation.Api/Core/Endpoints/UsersManagement/Authorization/GetAuthorization/GetAuthorizationEndpointSummary.cs @@ -45,7 +45,7 @@ public class GetAuthorizationEndpointSummary : Summary { { diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/UsersManagement/Authorization/GetUserRole/GetUserRoleEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/UsersManagement/Authorization/GetUserRole/GetUserRoleEndpointSummary.cs index 4097e948..9761783b 100644 --- a/src/Lumina.Presentation.Api/Core/Endpoints/UsersManagement/Authorization/GetUserRole/GetUserRoleEndpointSummary.cs +++ b/src/Lumina.Presentation.Api/Core/Endpoints/UsersManagement/Authorization/GetUserRole/GetUserRoleEndpointSummary.cs @@ -44,7 +44,7 @@ public class GetUserRoleEndpointSummary : Summary