Add ActionController and Swagger support

Updated `ReC.API.csproj` to include `Swashbuckle.AspNetCore` (v6.6.2) for Swagger/OpenAPI documentation. Removed an unused `<ItemGroup>` 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`.
This commit is contained in:
tekh 2025-11-25 00:47:00 +01:00
parent 3f5d3a8c08
commit b6000a56d6
2 changed files with 15 additions and 4 deletions

View File

@ -0,0 +1,15 @@
using Microsoft.AspNetCore.Mvc;
namespace ReC.API.Controllers;
[Route("api/[controller]")]
[ApiController]
public class ActionController : ControllerBase
{
[HttpPost("{profileId}")]
public Task<IActionResult> Trigger([FromRoute] int profileId)
{
// Implementation for retrieving actions would go here.
throw new NotImplementedException();
}
}

View File

@ -10,8 +10,4 @@
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
</ItemGroup>
<ItemGroup>
<Folder Include="Controllers\" />
</ItemGroup>
</Project>