Merge branch 'main' into hotfix-create-rectangle

# Conflicts:
#	dotnet/AipsWebApi/Controllers/ShapeController.cs
This commit is contained in:
2026-02-13 22:09:06 +01:00
35 changed files with 1736 additions and 154 deletions

View File

@@ -17,32 +17,4 @@ public class ShapeController : ControllerBase
{
_dispatcher = dispatcher;
}
[HttpPost("rectangle")]
public async Task<ActionResult<int>> CreateRectangle(CreateRectangleCommand command, CancellationToken token)
{
var result = await _dispatcher.Execute(command, token);
return Ok(result);
}
[HttpPost("arrow")]
public async Task<IActionResult> CreateArrow(CreateArrowCommand command, CancellationToken cancellationToken)
{
var result = await _dispatcher.Execute(command, cancellationToken);
return Ok(result);
}
[HttpPost("textShape")]
public async Task<IActionResult> CreateTextShape(CreateTextShapeCommand command, CancellationToken cancellationToken)
{
var result = await _dispatcher.Execute(command, cancellationToken);
return Ok(result);
}
[HttpPost("line")]
public async Task<IActionResult> CreateLine(CreateLineCommand command, CancellationToken cancellationToken)
{
var result = await _dispatcher.Execute(command, cancellationToken);
return Ok(result);
}
}