mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 17:11: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;
|
||||
|
||||
/// <summary>
|
||||
@@ -7,6 +11,7 @@ namespace Lumina.Contracts.Requests.Authentication;
|
||||
/// <param name="CurrentPassword">The current 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>
|
||||
[DebuggerDisplay("Username: {Username}")]
|
||||
public record ChangePasswordRequest(
|
||||
string? Username,
|
||||
string? CurrentPassword,
|
||||
|
||||
@@ -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 <paramref name="UserId"/>.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The unique identifier of the user for whom to get the authorization permissions. Required.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}")]
|
||||
public record GetUserPermissionsRequest(
|
||||
Guid? UserId
|
||||
);
|
||||
@@ -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 <paramref name="UserId"/>.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The unique identifier of the user for whom to get the authorization role. Required.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}")]
|
||||
public record GetUserRoleRequest(
|
||||
Guid? UserId
|
||||
);
|
||||
@@ -6,9 +6,9 @@ using System.Text.Json.Serialization;
|
||||
namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
|
||||
|
||||
/// <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>
|
||||
/// <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}")]
|
||||
public record GetPathParentRequest(
|
||||
string? Path
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ public class AddRoleEndpoint : BaseEndpoint<AddRoleRequest, IResult>
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new authorization role.
|
||||
/// Adds a new authorization role.
|
||||
/// </summary>
|
||||
/// <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>
|
||||
|
||||
Reference in new issue
Block a user