Update DELETE endpoints to use [FromQuery] parameters

Refactored all relevant controller DELETE actions to accept command/procedure parameters from the query string ([FromQuery]) instead of the request body ([FromBody]). Updated XML documentation and method signatures to reflect this change, including renaming parameters from "procedure" to "command" where appropriate. Also removed the unused IConfiguration dependency from EndpointAuthController.
This commit is contained in:
2026-03-24 11:57:53 +01:00
parent e691faf620
commit dcfa47c68d
7 changed files with 21 additions and 21 deletions

View File

@@ -66,14 +66,14 @@ public class RecActionController(IMediator mediator) : ControllerBase
/// <summary>
/// Deletes RecActions via the ACTION delete procedure for the specified id range.
/// </summary>
/// <param name="procedure">DeleteActionProcedure payload (Start, End, Force).</param>
/// <param name="command">DeleteActionProcedure payload (Start, End, Force).</param>
/// <param name="cancel">A token to cancel the operation.</param>
/// <returns>An HTTP 204 No Content response upon successful deletion.</returns>
[HttpDelete]
[ProducesResponseType(StatusCodes.Status204NoContent)]
public async Task<IActionResult> Delete([FromBody] DeleteActionCommand procedure, CancellationToken cancel)
public async Task<IActionResult> Delete([FromQuery] DeleteActionCommand command, CancellationToken cancel)
{
await mediator.Send(procedure, cancel);
await mediator.Send(command, cancel);
return NoContent();
}
#endregion CRUD