From 7b56033a15b9aad357c5c6cf7e7851587a13615e Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Mon, 17 Aug 2026 11:37:17 -0700 Subject: [PATCH] docs: updates api endpoint and contract documentation --- .../Requests/Authentication/ChangePasswordRequest.cs | 5 +++++ .../Requests/Authorization/GetUserPermissionsRequest.cs | 2 ++ .../Requests/Authorization/GetUserRoleRequest.cs | 2 ++ .../FileSystemManagement/Path/GetPathParentRequest.cs | 4 ++-- .../Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Lumina.Contracts/Requests/Authentication/ChangePasswordRequest.cs b/src/Lumina.Contracts/Requests/Authentication/ChangePasswordRequest.cs index 0f75f0b3..e6cf4dc8 100644 --- a/src/Lumina.Contracts/Requests/Authentication/ChangePasswordRequest.cs +++ b/src/Lumina.Contracts/Requests/Authentication/ChangePasswordRequest.cs @@ -1,3 +1,7 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + namespace Lumina.Contracts.Requests.Authentication; /// @@ -7,6 +11,7 @@ namespace Lumina.Contracts.Requests.Authentication; /// The current password of the account. Required. /// The new password of the account. Required. /// The confirmation of the new password of the account. Required. +[DebuggerDisplay("Username: {Username}")] public record ChangePasswordRequest( string? Username, string? CurrentPassword, diff --git a/src/Lumina.Contracts/Requests/Authorization/GetUserPermissionsRequest.cs b/src/Lumina.Contracts/Requests/Authorization/GetUserPermissionsRequest.cs index c7fa452b..5a0b894f 100644 --- a/src/Lumina.Contracts/Requests/Authorization/GetUserPermissionsRequest.cs +++ b/src/Lumina.Contracts/Requests/Authorization/GetUserPermissionsRequest.cs @@ -1,5 +1,6 @@ #region ========================================================================= USING ===================================================================================== using System; +using System.Diagnostics; #endregion namespace Lumina.Contracts.Requests.Authorization; @@ -8,6 +9,7 @@ namespace Lumina.Contracts.Requests.Authorization; /// Represents the request model for retrieving the authorization permissions of a user identified by . /// /// The unique identifier of the user for whom to get the authorization permissions. Required. +[DebuggerDisplay("UserId: {UserId}")] public record GetUserPermissionsRequest( Guid? UserId ); diff --git a/src/Lumina.Contracts/Requests/Authorization/GetUserRoleRequest.cs b/src/Lumina.Contracts/Requests/Authorization/GetUserRoleRequest.cs index fbb2faf2..3aa541af 100644 --- a/src/Lumina.Contracts/Requests/Authorization/GetUserRoleRequest.cs +++ b/src/Lumina.Contracts/Requests/Authorization/GetUserRoleRequest.cs @@ -1,5 +1,6 @@ #region ========================================================================= USING ===================================================================================== using System; +using System.Diagnostics; #endregion namespace Lumina.Contracts.Requests.Authorization; @@ -8,6 +9,7 @@ namespace Lumina.Contracts.Requests.Authorization; /// Represents the request model for retrieving the authorization role of a user identified by . /// /// The unique identifier of the user for whom to get the authorization role. Required. +[DebuggerDisplay("UserId: {UserId}")] public record GetUserRoleRequest( Guid? UserId ); diff --git a/src/Lumina.Contracts/Requests/FileSystemManagement/Path/GetPathParentRequest.cs b/src/Lumina.Contracts/Requests/FileSystemManagement/Path/GetPathParentRequest.cs index 38538c11..23503311 100644 --- a/src/Lumina.Contracts/Requests/FileSystemManagement/Path/GetPathParentRequest.cs +++ b/src/Lumina.Contracts/Requests/FileSystemManagement/Path/GetPathParentRequest.cs @@ -6,9 +6,9 @@ using System.Text.Json.Serialization; namespace Lumina.Contracts.Requests.FileSystemManagement.Path; /// -/// Represents a request to get the root of a file system path. +/// Represents the request for retrieving the parent path of a file system path. /// -/// The file system path for which to get the root. Required. +/// The path for which the parent path is retrieved. [DebuggerDisplay("Path: {Path}")] public record GetPathParentRequest( string? Path diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs b/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs index 8d0bd33a..f2989736 100644 --- a/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs +++ b/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs @@ -42,7 +42,7 @@ public class AddRoleEndpoint : BaseEndpoint } /// - /// Creates a new authorization role. + /// Adds a new authorization role. /// /// The request containing the authorization role to be created. /// Cancellation token that can be used to stop the execution.