From ac214dc8e1a78dadacb7187fb7f26a8aef01c3ba Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 1 Dec 2025 16:16:35 +0100 Subject: [PATCH] Add CreateAction POST endpoint to ActionController A new HTTP POST endpoint `CreateAction` was added to the `ActionController` class. This endpoint accepts a `CreateRecActionCommand` object from the request body, sends it to the `mediator` for processing, and returns a `201 Created` response using the `CreatedAtAction` method. This change enables the creation of actions via HTTP POST requests, enhancing the controller's functionality. --- src/ReC.API/Controllers/ActionController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ReC.API/Controllers/ActionController.cs b/src/ReC.API/Controllers/ActionController.cs index d863a03..9a54481 100644 --- a/src/ReC.API/Controllers/ActionController.cs +++ b/src/ReC.API/Controllers/ActionController.cs @@ -15,6 +15,7 @@ public class ActionController(IMediator mediator) : ControllerBase return Accepted(); } + [HttpPost] public async Task CreateAction([FromBody] CreateRecActionCommand command) { await mediator.Send(command);