From b6000a56d671bf7c15c3d951af194ea6919e111f Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 25 Nov 2025 00:47:00 +0100 Subject: [PATCH] Add ActionController and Swagger support Updated `ReC.API.csproj` to include `Swashbuckle.AspNetCore` (v6.6.2) for Swagger/OpenAPI documentation. Removed an unused `` referencing the `Controllers\` folder. Added a new `ActionController` with a `[Route("api/[controller]")]` and `[ApiController]` attributes. Introduced a `Trigger` HTTP POST endpoint that accepts a `profileId` parameter. The method is currently unimplemented and throws a `NotImplementedException`. --- src/ReC.API/Controllers/ActionController.cs | 15 +++++++++++++++ src/ReC.API/ReC.API.csproj | 4 ---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 src/ReC.API/Controllers/ActionController.cs diff --git a/src/ReC.API/Controllers/ActionController.cs b/src/ReC.API/Controllers/ActionController.cs new file mode 100644 index 0000000..c4b6062 --- /dev/null +++ b/src/ReC.API/Controllers/ActionController.cs @@ -0,0 +1,15 @@ +using Microsoft.AspNetCore.Mvc; + +namespace ReC.API.Controllers; + +[Route("api/[controller]")] +[ApiController] +public class ActionController : ControllerBase +{ + [HttpPost("{profileId}")] + public Task Trigger([FromRoute] int profileId) + { + // Implementation for retrieving actions would go here. + throw new NotImplementedException(); + } +} \ No newline at end of file diff --git a/src/ReC.API/ReC.API.csproj b/src/ReC.API/ReC.API.csproj index 0c56541..5419ef0 100644 --- a/src/ReC.API/ReC.API.csproj +++ b/src/ReC.API/ReC.API.csproj @@ -10,8 +10,4 @@ - - - -