diff --git a/src/ReC.API/Controllers/CommonController.cs b/src/ReC.API/Controllers/CommonController.cs index 23cf033..a03ba5a 100644 --- a/src/ReC.API/Controllers/CommonController.cs +++ b/src/ReC.API/Controllers/CommonController.cs @@ -25,7 +25,7 @@ public class CommonController(IMediator mediator) : ControllerBase } [HttpDelete] - public async Task DeleteObject([FromBody] DeleteObjectProcedure procedure, CancellationToken cancel) + public async Task DeleteObject([FromQuery] DeleteObjectProcedure procedure, CancellationToken cancel) { var result = await mediator.Send(procedure, cancel); return Ok(result); diff --git a/src/ReC.API/Controllers/EndpointAuthController.cs b/src/ReC.API/Controllers/EndpointAuthController.cs index a16cdd2..8ac2d27 100644 --- a/src/ReC.API/Controllers/EndpointAuthController.cs +++ b/src/ReC.API/Controllers/EndpointAuthController.cs @@ -6,7 +6,7 @@ namespace ReC.API.Controllers; [Route("api/[controller]")] [ApiController] -public class EndpointAuthController(IMediator mediator, IConfiguration config) : ControllerBase +public class EndpointAuthController(IMediator mediator) : ControllerBase { /// /// Inserts an endpoint authentication record via the ENDPOINT_AUTH insert procedure. @@ -39,14 +39,14 @@ public class EndpointAuthController(IMediator mediator, IConfiguration config) : /// /// Deletes endpoint authentication records via the ENDPOINT_AUTH delete procedure for the specified id range. /// - /// DeleteEndpointAuthProcedure payload (Start, End, Force). + /// DeleteEndpointAuthProcedure payload (Start, End, Force). /// A token to cancel the operation. /// No content on success. [HttpDelete] [ProducesResponseType(StatusCodes.Status204NoContent)] - public async Task Delete([FromBody] DeleteEndpointAuthCommand procedure, CancellationToken cancel) + public async Task Delete([FromQuery] DeleteEndpointAuthCommand command, CancellationToken cancel) { - await mediator.Send(procedure, cancel); + await mediator.Send(command, cancel); return NoContent(); } } diff --git a/src/ReC.API/Controllers/EndpointParamsController.cs b/src/ReC.API/Controllers/EndpointParamsController.cs index 361b38f..f8069fe 100644 --- a/src/ReC.API/Controllers/EndpointParamsController.cs +++ b/src/ReC.API/Controllers/EndpointParamsController.cs @@ -39,14 +39,14 @@ public class EndpointParamsController(IMediator mediator) : ControllerBase /// /// Deletes endpoint parameter records via the ENDPOINT_PARAMS delete procedure for the specified id range. /// - /// DeleteEndpointParamsProcedure payload (Start, End, Force). + /// DeleteEndpointParamsProcedure payload (Start, End, Force). /// A token to cancel the operation. /// No content on success. [HttpDelete] [ProducesResponseType(StatusCodes.Status204NoContent)] - public async Task Delete([FromBody] DeleteEndpointParamsCommand procedure, CancellationToken cancel) + public async Task Delete([FromQuery] DeleteEndpointParamsCommand command, CancellationToken cancel) { - await mediator.Send(procedure, cancel); + await mediator.Send(command, cancel); return NoContent(); } } diff --git a/src/ReC.API/Controllers/EndpointsController.cs b/src/ReC.API/Controllers/EndpointsController.cs index fbadcbc..47f5adb 100644 --- a/src/ReC.API/Controllers/EndpointsController.cs +++ b/src/ReC.API/Controllers/EndpointsController.cs @@ -39,14 +39,14 @@ public class EndpointsController(IMediator mediator) : ControllerBase /// /// Deletes endpoints via the ENDPOINT delete procedure for the specified id range. /// - /// DeleteEndpointProcedure payload (Start, End, Force). + /// DeleteEndpointProcedure payload (Start, End, Force). /// A token to cancel the operation. /// No content on success. [HttpDelete] [ProducesResponseType(StatusCodes.Status204NoContent)] - public async Task Delete([FromBody] DeleteEndpointCommand procedure, CancellationToken cancel) + public async Task Delete([FromQuery] DeleteEndpointCommand command, CancellationToken cancel) { - await mediator.Send(procedure, cancel); + await mediator.Send(command, cancel); return NoContent(); } -} +} \ No newline at end of file diff --git a/src/ReC.API/Controllers/ProfileController.cs b/src/ReC.API/Controllers/ProfileController.cs index ac0f906..0ce6fcd 100644 --- a/src/ReC.API/Controllers/ProfileController.cs +++ b/src/ReC.API/Controllers/ProfileController.cs @@ -46,14 +46,14 @@ public class ProfileController(IMediator mediator) : ControllerBase /// /// Deletes profile records via the PROFILE delete procedure for the specified id range. /// - /// DeleteProfileProcedure payload (Start, End, Force). + /// DeleteProfileProcedure payload (Start, End, Force). /// A token to cancel the operation. /// No content on success. [HttpDelete] [ProducesResponseType(StatusCodes.Status204NoContent)] - public async Task Delete([FromBody] DeleteProfileCommand procedure, CancellationToken cancel) + public async Task Delete([FromQuery] DeleteProfileCommand command, CancellationToken cancel) { - await mediator.Send(procedure, cancel); + await mediator.Send(command, cancel); return NoContent(); } } \ No newline at end of file diff --git a/src/ReC.API/Controllers/RecActionController.cs b/src/ReC.API/Controllers/RecActionController.cs index 780e719..012e9d0 100644 --- a/src/ReC.API/Controllers/RecActionController.cs +++ b/src/ReC.API/Controllers/RecActionController.cs @@ -66,14 +66,14 @@ public class RecActionController(IMediator mediator) : ControllerBase /// /// Deletes RecActions via the ACTION delete procedure for the specified id range. /// - /// DeleteActionProcedure payload (Start, End, Force). + /// DeleteActionProcedure payload (Start, End, Force). /// A token to cancel the operation. /// An HTTP 204 No Content response upon successful deletion. [HttpDelete] [ProducesResponseType(StatusCodes.Status204NoContent)] - public async Task Delete([FromBody] DeleteActionCommand procedure, CancellationToken cancel) + public async Task Delete([FromQuery] DeleteActionCommand command, CancellationToken cancel) { - await mediator.Send(procedure, cancel); + await mediator.Send(command, cancel); return NoContent(); } #endregion CRUD diff --git a/src/ReC.API/Controllers/ResultController.cs b/src/ReC.API/Controllers/ResultController.cs index b2a27d3..7926bf9 100644 --- a/src/ReC.API/Controllers/ResultController.cs +++ b/src/ReC.API/Controllers/ResultController.cs @@ -53,14 +53,14 @@ public class ResultController(IMediator mediator) : ControllerBase /// /// Deletes RESULT records via the delete procedure for the specified id range. /// - /// DeleteResultProcedure payload (Start, End, Force). + /// DeleteResultProcedure payload (Start, End, Force). /// A token to cancel the operation. /// No content on success. [HttpDelete] [ProducesResponseType(StatusCodes.Status204NoContent)] - public async Task Delete([FromBody] DeleteResultCommand procedure, CancellationToken cancel) + public async Task Delete([FromQuery] DeleteResultCommand command, CancellationToken cancel) { - await mediator.Send(procedure, cancel); + await mediator.Send(command, cancel); return NoContent(); } } \ No newline at end of file