mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
docs: updates api endpoint and contract documentation
This commit is contained in:
1 parent
d3b1c681dc
commit
7b56033a15
5 files changed
+12
-3
No files matched your search
@@ -1,3 +1,7 @@
|
|||||||
|
#region ========================================================================= USING =====================================================================================
|
||||||
|
using System.Diagnostics;
|
||||||
|
#endregion
|
||||||
|
|
||||||
namespace Lumina.Contracts.Requests.Authentication;
|
namespace Lumina.Contracts.Requests.Authentication;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -7,6 +11,7 @@ namespace Lumina.Contracts.Requests.Authentication;
|
|||||||
/// <param name="CurrentPassword">The current password of the account. Required.</param>
|
/// <param name="CurrentPassword">The current password of the account. Required.</param>
|
||||||
/// <param name="NewPassword">The new password of the account. Required.</param>
|
/// <param name="NewPassword">The new password of the account. Required.</param>
|
||||||
/// <param name="NewPasswordConfirm">The confirmation of the new password of the account. Required.</param>
|
/// <param name="NewPasswordConfirm">The confirmation of the new password of the account. Required.</param>
|
||||||
|
[DebuggerDisplay("Username: {Username}")]
|
||||||
public record ChangePasswordRequest(
|
public record ChangePasswordRequest(
|
||||||
string? Username,
|
string? Username,
|
||||||
string? CurrentPassword,
|
string? CurrentPassword,
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#region ========================================================================= USING =====================================================================================
|
#region ========================================================================= USING =====================================================================================
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
namespace Lumina.Contracts.Requests.Authorization;
|
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 <paramref name="UserId"/>.
|
/// Represents the request model for retrieving the authorization permissions of a user identified by <paramref name="UserId"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="UserId">The unique identifier of the user for whom to get the authorization permissions. Required.</param>
|
/// <param name="UserId">The unique identifier of the user for whom to get the authorization permissions. Required.</param>
|
||||||
|
[DebuggerDisplay("UserId: {UserId}")]
|
||||||
public record GetUserPermissionsRequest(
|
public record GetUserPermissionsRequest(
|
||||||
Guid? UserId
|
Guid? UserId
|
||||||
);
|
);
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
#region ========================================================================= USING =====================================================================================
|
#region ========================================================================= USING =====================================================================================
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
namespace Lumina.Contracts.Requests.Authorization;
|
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 <paramref name="UserId"/>.
|
/// Represents the request model for retrieving the authorization role of a user identified by <paramref name="UserId"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="UserId">The unique identifier of the user for whom to get the authorization role. Required.</param>
|
/// <param name="UserId">The unique identifier of the user for whom to get the authorization role. Required.</param>
|
||||||
|
[DebuggerDisplay("UserId: {UserId}")]
|
||||||
public record GetUserRoleRequest(
|
public record GetUserRoleRequest(
|
||||||
Guid? UserId
|
Guid? UserId
|
||||||
);
|
);
|
||||||
@@ -6,9 +6,9 @@ using System.Text.Json.Serialization;
|
|||||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
|
namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 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.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="Path">The file system path for which to get the root. Required.</param>
|
/// <param name="Path">The path for which the parent path is retrieved.</param>
|
||||||
[DebuggerDisplay("Path: {Path}")]
|
[DebuggerDisplay("Path: {Path}")]
|
||||||
public record GetPathParentRequest(
|
public record GetPathParentRequest(
|
||||||
string? Path
|
string? Path
|
||||||
|
|||||||
+1
-1
@@ -42,7 +42,7 @@ public class AddRoleEndpoint : BaseEndpoint<AddRoleRequest, IResult>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a new authorization role.
|
/// Adds a new authorization role.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="request">The request containing the authorization role to be created.</param>
|
/// <param name="request">The request containing the authorization role to be created.</param>
|
||||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||||
|
|||||||
Reference in new issue
Block a user