Add new endpoint and improve exception handling

Removed the `asByte` parameter from XML documentation in `DocumentController.cs`, indicating the method no longer supports byte array returns. Added a new HTTP POST endpoint `CloseAsync` in `WorkflowsController.cs`, which is currently not implemented and throws a `NotImplementedException`. Enhanced `ExceptionHandlingMiddleware.cs` to handle `NotImplementedException` by logging a warning and returning a `501 Not Implemented` response in a problem details format.
This commit is contained in:
2026-10-31 21:25:49 +01:00
parent b35017fddc
commit 1a6baef807
3 changed files with 32 additions and 1 deletions

View File

@@ -27,4 +27,20 @@ public sealed class WorkflowsController(ISender sender) : ControllerBase
{
return Ok(await sender.Send(new GetWorkflowsQuery(wisagId), cancellationToken));
}
/// <summary>
///
/// </summary>
/// <param name="wisagId"></param>
/// <param name="source"></param>
/// <param name="processId"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
[HttpPost("{wisagId:int}/{source}/{processId:long}/closing")]
[ProducesResponseType(StatusCodes.Status501NotImplemented)]
public Task<ActionResult<JsonElement>> CloseAsync([FromRoute] int wisagId, [FromRoute] string source, [FromRoute] long processId, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
}