Enhance node update functionality to include base address
- Added `BaseAddress` property to `UpdateNodeCommand` and `UpdateNodeBody` for improved node management. - Implemented validation for the base address in `UpdateNodeCommandHandler`, ensuring it is a valid absolute URI. - Updated `Node` class to support address updates, including logic to invalidate cached clients on address changes. - Enhanced frontend components to handle base address input in the node editing dialog and API requests. - Updated validation rules to enforce base address requirements in `UpdateNodeCommandValidator`.
This commit is contained in:
@@ -52,6 +52,7 @@ public static class NodeEndpoints
|
||||
var command = new UpdateNodeCommand(
|
||||
id,
|
||||
body.Name,
|
||||
body.BaseAddress,
|
||||
body.Location,
|
||||
body.IsEnabled,
|
||||
body.Username,
|
||||
@@ -94,6 +95,7 @@ public static class NodeEndpoints
|
||||
|
||||
public sealed record UpdateNodeBody(
|
||||
string Name,
|
||||
string BaseAddress,
|
||||
string? Location,
|
||||
bool IsEnabled,
|
||||
string? Username,
|
||||
|
||||
Reference in New Issue
Block a user