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:
+1
-1
@@ -19,7 +19,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\HrynCo.NotificationService.Api\HrynCo.NotificationService.Api.csproj" />
|
<ProjectReference Include="..\HrynCo.NotificationService.Web\HrynCo.NotificationService.Web.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace HrynCo.NotificationService.Api.IntegrationTests;
|
namespace HrynCo.NotificationService.Web.IntegrationTests;
|
||||||
|
|
||||||
public class UnitTest1
|
public class UnitTest1
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace HrynCo.NotificationService.Api;
|
namespace HrynCo.NotificationService.Web;
|
||||||
|
|
||||||
public sealed class AppSettings
|
public sealed class AppSettings
|
||||||
{
|
{
|
||||||
+2
-2
@@ -1,9 +1,9 @@
|
|||||||
using HrynCo.NotificationService.Api.Infrastructure;
|
using HrynCo.NotificationService.Web.Infrastructure;
|
||||||
using HrynCo.NotificationService.Services.Core;
|
using HrynCo.NotificationService.Services.Core;
|
||||||
using MediatR;
|
using MediatR;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace HrynCo.NotificationService.Api.Controllers;
|
namespace HrynCo.NotificationService.Web.Controllers;
|
||||||
|
|
||||||
[Route("api/v1/[controller]")]
|
[Route("api/v1/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
using HrynCo.NotificationService.DAL.Abstract.Providers;
|
using HrynCo.NotificationService.DAL.Abstract.Providers;
|
||||||
|
|
||||||
namespace HrynCo.NotificationService.Api.Controllers.EmailChannels;
|
namespace HrynCo.NotificationService.Web.Controllers.EmailChannels;
|
||||||
|
|
||||||
public sealed record CreateEmailChannelRequest(
|
public sealed record CreateEmailChannelRequest(
|
||||||
string ServiceName,
|
string ServiceName,
|
||||||
+2
-2
@@ -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.Create;
|
||||||
using HrynCo.NotificationService.Services.EmailChannels.Delete;
|
using HrynCo.NotificationService.Services.EmailChannels.Delete;
|
||||||
using HrynCo.NotificationService.Services.EmailChannels.Get;
|
using HrynCo.NotificationService.Services.EmailChannels.Get;
|
||||||
@@ -7,7 +7,7 @@ using HrynCo.NotificationService.Services.EmailChannels.Update;
|
|||||||
using MediatR;
|
using MediatR;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace HrynCo.NotificationService.Api.Controllers.EmailChannels;
|
namespace HrynCo.NotificationService.Web.Controllers.EmailChannels;
|
||||||
|
|
||||||
[Route("api/v1/email-channels")]
|
[Route("api/v1/email-channels")]
|
||||||
public sealed class EmailChannelsController : ApiControllerBase
|
public sealed class EmailChannelsController : ApiControllerBase
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
using HrynCo.NotificationService.DAL.Abstract.Providers;
|
using HrynCo.NotificationService.DAL.Abstract.Providers;
|
||||||
|
|
||||||
namespace HrynCo.NotificationService.Api.Controllers.EmailChannels;
|
namespace HrynCo.NotificationService.Web.Controllers.EmailChannels;
|
||||||
|
|
||||||
public sealed record UpdateEmailChannelRequest(
|
public sealed record UpdateEmailChannelRequest(
|
||||||
int Priority,
|
int Priority,
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
using HrynCo.NotificationService.DAL.Abstract.Templates;
|
using HrynCo.NotificationService.DAL.Abstract.Templates;
|
||||||
|
|
||||||
namespace HrynCo.NotificationService.Api.Controllers.EmailTemplates;
|
namespace HrynCo.NotificationService.Web.Controllers.EmailTemplates;
|
||||||
|
|
||||||
public sealed record CreateEmailTemplateRequest(
|
public sealed record CreateEmailTemplateRequest(
|
||||||
string ServiceName,
|
string ServiceName,
|
||||||
+2
-2
@@ -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.Create;
|
||||||
using HrynCo.NotificationService.Services.EmailTemplates.Delete;
|
using HrynCo.NotificationService.Services.EmailTemplates.Delete;
|
||||||
using HrynCo.NotificationService.Services.EmailTemplates.Get;
|
using HrynCo.NotificationService.Services.EmailTemplates.Get;
|
||||||
@@ -7,7 +7,7 @@ using HrynCo.NotificationService.Services.EmailTemplates.Update;
|
|||||||
using MediatR;
|
using MediatR;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace HrynCo.NotificationService.Api.Controllers.EmailTemplates;
|
namespace HrynCo.NotificationService.Web.Controllers.EmailTemplates;
|
||||||
|
|
||||||
[Route("api/v1/email-templates")]
|
[Route("api/v1/email-templates")]
|
||||||
public sealed class EmailTemplatesController : ApiControllerBase
|
public sealed class EmailTemplatesController : ApiControllerBase
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
using HrynCo.NotificationService.DAL.Abstract.Templates;
|
using HrynCo.NotificationService.DAL.Abstract.Templates;
|
||||||
|
|
||||||
namespace HrynCo.NotificationService.Api.Controllers.EmailTemplates;
|
namespace HrynCo.NotificationService.Web.Controllers.EmailTemplates;
|
||||||
|
|
||||||
public sealed record UpdateEmailTemplateRequest(
|
public sealed record UpdateEmailTemplateRequest(
|
||||||
string Subject,
|
string Subject,
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace HrynCo.NotificationService.Api.Infrastructure;
|
namespace HrynCo.NotificationService.Web.Infrastructure;
|
||||||
|
|
||||||
public sealed class ApiResponse<T>
|
public sealed class ApiResponse<T>
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
using HrynCo.NotificationService.Api;
|
using HrynCo.NotificationService.Web;
|
||||||
using HrynCo.NotificationService.DAL.EF;
|
using HrynCo.NotificationService.DAL.EF;
|
||||||
using HrynCo.NotificationService.Services;
|
using HrynCo.NotificationService.Services;
|
||||||
using Scalar.AspNetCore;
|
using Scalar.AspNetCore;
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
using Serilog;
|
using Serilog;
|
||||||
|
|
||||||
namespace HrynCo.NotificationService.Api;
|
namespace HrynCo.NotificationService.Web;
|
||||||
|
|
||||||
public static class SerilogRegistrar
|
public static class SerilogRegistrar
|
||||||
{
|
{
|
||||||
@@ -2,15 +2,15 @@
|
|||||||
<Folder Name="/docker/">
|
<Folder Name="/docker/">
|
||||||
<File Path="docker/environments/docker-compose.yml" />
|
<File Path="docker/environments/docker-compose.yml" />
|
||||||
<File Path="docker/environments/docker-compose.Development.yml" />
|
<File Path="docker/environments/docker-compose.Development.yml" />
|
||||||
<Folder Name="/docker/Api/">
|
<Folder Name="/docker/Web/">
|
||||||
<File Path="HrynCo.NotificationService.Api/Dockerfile" />
|
<File Path="HrynCo.NotificationService.Web/Dockerfile" />
|
||||||
</Folder>
|
</Folder>
|
||||||
<Folder Name="/docker/Worker/">
|
<Folder Name="/docker/Worker/">
|
||||||
<File Path="HrynCo.NotificationService.Worker/Dockerfile" />
|
<File Path="HrynCo.NotificationService.Worker/Dockerfile" />
|
||||||
</Folder>
|
</Folder>
|
||||||
</Folder>
|
</Folder>
|
||||||
<Project Path="HrynCo.NotificationService.Api.IntegrationTests/HrynCo.NotificationService.Api.IntegrationTests.csproj" />
|
<Project Path="HrynCo.NotificationService.Web.IntegrationTests/HrynCo.NotificationService.Web.IntegrationTests.csproj" />
|
||||||
<Project Path="HrynCo.NotificationService.Api/HrynCo.NotificationService.Api.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.Abstract/HrynCo.NotificationService.DAL.Abstract.csproj" />
|
||||||
<Project Path="HrynCo.NotificationService.DAL.EF/HrynCo.NotificationService.DAL.EF.csproj" />
|
<Project Path="HrynCo.NotificationService.DAL.EF/HrynCo.NotificationService.DAL.EF.csproj" />
|
||||||
<Project Path="HrynCo.NotificationService.Services.Tests/HrynCo.NotificationService.Services.Tests.csproj" />
|
<Project Path="HrynCo.NotificationService.Services.Tests/HrynCo.NotificationService.Services.Tests.csproj" />
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ services:
|
|||||||
api:
|
api:
|
||||||
build:
|
build:
|
||||||
context: ../..
|
context: ../..
|
||||||
dockerfile: HrynCo.NotificationService.Api/Dockerfile
|
dockerfile: HrynCo.NotificationService.Web/Dockerfile
|
||||||
environment:
|
environment:
|
||||||
- ASPNETCORE_ENVIRONMENT=Production
|
- ASPNETCORE_ENVIRONMENT=Production
|
||||||
- App__ConnectionString=${CONNECTION_STRING}
|
- App__ConnectionString=${CONNECTION_STRING}
|
||||||
|
|||||||
Reference in New Issue
Block a user