refactor: rename Api project to Web

- HrynCo.NotificationService.Api -> HrynCo.NotificationService.Web
- HrynCo.NotificationService.Api.IntegrationTests -> HrynCo.NotificationService.Web.IntegrationTests
- Updated slnx, docker-compose, project references, and namespaces
- Project serves both REST API and admin UI

Ref: IT-628

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Anatolii Grynchuk
2026-05-02 01:55:57 +03:00
parent 2cc8b6b7f2
commit ab44ad117c
21 changed files with 21 additions and 21 deletions
@@ -19,7 +19,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\HrynCo.NotificationService.Api\HrynCo.NotificationService.Api.csproj" />
<ProjectReference Include="..\HrynCo.NotificationService.Web\HrynCo.NotificationService.Web.csproj" />
</ItemGroup>
</Project>
@@ -1,4 +1,4 @@
namespace HrynCo.NotificationService.Api.IntegrationTests;
namespace HrynCo.NotificationService.Web.IntegrationTests;
public class UnitTest1
{
@@ -1,4 +1,4 @@
namespace HrynCo.NotificationService.Api;
namespace HrynCo.NotificationService.Web;
public sealed class AppSettings
{
@@ -1,9 +1,9 @@
using HrynCo.NotificationService.Api.Infrastructure;
using HrynCo.NotificationService.Web.Infrastructure;
using HrynCo.NotificationService.Services.Core;
using MediatR;
using Microsoft.AspNetCore.Mvc;
namespace HrynCo.NotificationService.Api.Controllers;
namespace HrynCo.NotificationService.Web.Controllers;
[Route("api/v1/[controller]")]
[ApiController]
@@ -1,6 +1,6 @@
using HrynCo.NotificationService.DAL.Abstract.Providers;
namespace HrynCo.NotificationService.Api.Controllers.EmailChannels;
namespace HrynCo.NotificationService.Web.Controllers.EmailChannels;
public sealed record CreateEmailChannelRequest(
string ServiceName,
@@ -1,4 +1,4 @@
using HrynCo.NotificationService.Api.Infrastructure;
using HrynCo.NotificationService.Web.Infrastructure;
using HrynCo.NotificationService.Services.EmailChannels.Create;
using HrynCo.NotificationService.Services.EmailChannels.Delete;
using HrynCo.NotificationService.Services.EmailChannels.Get;
@@ -7,7 +7,7 @@ using HrynCo.NotificationService.Services.EmailChannels.Update;
using MediatR;
using Microsoft.AspNetCore.Mvc;
namespace HrynCo.NotificationService.Api.Controllers.EmailChannels;
namespace HrynCo.NotificationService.Web.Controllers.EmailChannels;
[Route("api/v1/email-channels")]
public sealed class EmailChannelsController : ApiControllerBase
@@ -1,6 +1,6 @@
using HrynCo.NotificationService.DAL.Abstract.Providers;
namespace HrynCo.NotificationService.Api.Controllers.EmailChannels;
namespace HrynCo.NotificationService.Web.Controllers.EmailChannels;
public sealed record UpdateEmailChannelRequest(
int Priority,
@@ -1,6 +1,6 @@
using HrynCo.NotificationService.DAL.Abstract.Templates;
namespace HrynCo.NotificationService.Api.Controllers.EmailTemplates;
namespace HrynCo.NotificationService.Web.Controllers.EmailTemplates;
public sealed record CreateEmailTemplateRequest(
string ServiceName,
@@ -1,4 +1,4 @@
using HrynCo.NotificationService.Api.Infrastructure;
using HrynCo.NotificationService.Web.Infrastructure;
using HrynCo.NotificationService.Services.EmailTemplates.Create;
using HrynCo.NotificationService.Services.EmailTemplates.Delete;
using HrynCo.NotificationService.Services.EmailTemplates.Get;
@@ -7,7 +7,7 @@ using HrynCo.NotificationService.Services.EmailTemplates.Update;
using MediatR;
using Microsoft.AspNetCore.Mvc;
namespace HrynCo.NotificationService.Api.Controllers.EmailTemplates;
namespace HrynCo.NotificationService.Web.Controllers.EmailTemplates;
[Route("api/v1/email-templates")]
public sealed class EmailTemplatesController : ApiControllerBase
@@ -1,6 +1,6 @@
using HrynCo.NotificationService.DAL.Abstract.Templates;
namespace HrynCo.NotificationService.Api.Controllers.EmailTemplates;
namespace HrynCo.NotificationService.Web.Controllers.EmailTemplates;
public sealed record UpdateEmailTemplateRequest(
string Subject,
@@ -1,4 +1,4 @@
namespace HrynCo.NotificationService.Api.Infrastructure;
namespace HrynCo.NotificationService.Web.Infrastructure;
public sealed class ApiResponse<T>
{
@@ -1,4 +1,4 @@
using HrynCo.NotificationService.Api;
using HrynCo.NotificationService.Web;
using HrynCo.NotificationService.DAL.EF;
using HrynCo.NotificationService.Services;
using Scalar.AspNetCore;
@@ -1,6 +1,6 @@
using Serilog;
namespace HrynCo.NotificationService.Api;
namespace HrynCo.NotificationService.Web;
public static class SerilogRegistrar
{
+4 -4
View File
@@ -2,15 +2,15 @@
<Folder Name="/docker/">
<File Path="docker/environments/docker-compose.yml" />
<File Path="docker/environments/docker-compose.Development.yml" />
<Folder Name="/docker/Api/">
<File Path="HrynCo.NotificationService.Api/Dockerfile" />
<Folder Name="/docker/Web/">
<File Path="HrynCo.NotificationService.Web/Dockerfile" />
</Folder>
<Folder Name="/docker/Worker/">
<File Path="HrynCo.NotificationService.Worker/Dockerfile" />
</Folder>
</Folder>
<Project Path="HrynCo.NotificationService.Api.IntegrationTests/HrynCo.NotificationService.Api.IntegrationTests.csproj" />
<Project Path="HrynCo.NotificationService.Api/HrynCo.NotificationService.Api.csproj" />
<Project Path="HrynCo.NotificationService.Web.IntegrationTests/HrynCo.NotificationService.Web.IntegrationTests.csproj" />
<Project Path="HrynCo.NotificationService.Web/HrynCo.NotificationService.Web.csproj" />
<Project Path="HrynCo.NotificationService.DAL.Abstract/HrynCo.NotificationService.DAL.Abstract.csproj" />
<Project Path="HrynCo.NotificationService.DAL.EF/HrynCo.NotificationService.DAL.EF.csproj" />
<Project Path="HrynCo.NotificationService.Services.Tests/HrynCo.NotificationService.Services.Tests.csproj" />
+1 -1
View File
@@ -2,7 +2,7 @@ services:
api:
build:
context: ../..
dockerfile: HrynCo.NotificationService.Api/Dockerfile
dockerfile: HrynCo.NotificationService.Web/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Production
- App__ConnectionString=${CONNECTION_STRING}