From 4d427c10fecbe77eb38c0fa6d347e904dc35b455 Mon Sep 17 00:00:00 2001 From: OlgunR Date: Fri, 12 Jun 2026 13:38:48 +0200 Subject: [PATCH] Add project files. --- .../DocumentOperator.API.csproj | 23 ++++++++++ .../DocumentOperator.API.http | 6 +++ DocumentOperator.API/Program.cs | 25 +++++++++++ .../Properties/launchSettings.json | 41 ++++++++++++++++++ .../appsettings.Development.json | 8 ++++ DocumentOperator.API/appsettings.json | 9 ++++ .../DocumentOperator.Application.csproj | 13 ++++++ .../DocumentOperator.Domain.csproj | 9 ++++ .../DocumentOperator.Infrastructure.csproj | 14 ++++++ DocumentOperator.sln | 43 +++++++++++++++++++ 10 files changed, 191 insertions(+) create mode 100644 DocumentOperator.API/DocumentOperator.API.csproj create mode 100644 DocumentOperator.API/DocumentOperator.API.http create mode 100644 DocumentOperator.API/Program.cs create mode 100644 DocumentOperator.API/Properties/launchSettings.json create mode 100644 DocumentOperator.API/appsettings.Development.json create mode 100644 DocumentOperator.API/appsettings.json create mode 100644 DocumentOperator.Application/DocumentOperator.Application.csproj create mode 100644 DocumentOperator.Domain/DocumentOperator.Domain.csproj create mode 100644 DocumentOperator.Infrastructure/DocumentOperator.Infrastructure.csproj create mode 100644 DocumentOperator.sln diff --git a/DocumentOperator.API/DocumentOperator.API.csproj b/DocumentOperator.API/DocumentOperator.API.csproj new file mode 100644 index 0000000..799f0d7 --- /dev/null +++ b/DocumentOperator.API/DocumentOperator.API.csproj @@ -0,0 +1,23 @@ + + + + net8.0 + enable + enable + + + + + + + + + + + + + + + + + diff --git a/DocumentOperator.API/DocumentOperator.API.http b/DocumentOperator.API/DocumentOperator.API.http new file mode 100644 index 0000000..38f5653 --- /dev/null +++ b/DocumentOperator.API/DocumentOperator.API.http @@ -0,0 +1,6 @@ +@DocumentOperator.API_HostAddress = http://localhost:5028 + +GET {{DocumentOperator.API_HostAddress}}/weatherforecast/ +Accept: application/json + +### diff --git a/DocumentOperator.API/Program.cs b/DocumentOperator.API/Program.cs new file mode 100644 index 0000000..48863a6 --- /dev/null +++ b/DocumentOperator.API/Program.cs @@ -0,0 +1,25 @@ +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. + +builder.Services.AddControllers(); +// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle +builder.Services.AddEndpointsApiExplorer(); +builder.Services.AddSwaggerGen(); + +var app = builder.Build(); + +// Configure the HTTP request pipeline. +if (app.Environment.IsDevelopment()) +{ + app.UseSwagger(); + app.UseSwaggerUI(); +} + +app.UseHttpsRedirection(); + +app.UseAuthorization(); + +app.MapControllers(); + +app.Run(); diff --git a/DocumentOperator.API/Properties/launchSettings.json b/DocumentOperator.API/Properties/launchSettings.json new file mode 100644 index 0000000..b26b082 --- /dev/null +++ b/DocumentOperator.API/Properties/launchSettings.json @@ -0,0 +1,41 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:62933", + "sslPort": 44304 + } + }, + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "http://localhost:5028", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:7186;http://localhost:5028", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "swagger", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/DocumentOperator.API/appsettings.Development.json b/DocumentOperator.API/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/DocumentOperator.API/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/DocumentOperator.API/appsettings.json b/DocumentOperator.API/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/DocumentOperator.API/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/DocumentOperator.Application/DocumentOperator.Application.csproj b/DocumentOperator.Application/DocumentOperator.Application.csproj new file mode 100644 index 0000000..a3fee51 --- /dev/null +++ b/DocumentOperator.Application/DocumentOperator.Application.csproj @@ -0,0 +1,13 @@ + + + + net8.0 + enable + enable + + + + + + + diff --git a/DocumentOperator.Domain/DocumentOperator.Domain.csproj b/DocumentOperator.Domain/DocumentOperator.Domain.csproj new file mode 100644 index 0000000..fa71b7a --- /dev/null +++ b/DocumentOperator.Domain/DocumentOperator.Domain.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + + diff --git a/DocumentOperator.Infrastructure/DocumentOperator.Infrastructure.csproj b/DocumentOperator.Infrastructure/DocumentOperator.Infrastructure.csproj new file mode 100644 index 0000000..3bfb617 --- /dev/null +++ b/DocumentOperator.Infrastructure/DocumentOperator.Infrastructure.csproj @@ -0,0 +1,14 @@ + + + + net8.0 + enable + enable + + + + + + + + diff --git a/DocumentOperator.sln b/DocumentOperator.sln new file mode 100644 index 0000000..7d07a10 --- /dev/null +++ b/DocumentOperator.sln @@ -0,0 +1,43 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.37328.6 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocumentOperator.API", "DocumentOperator.API\DocumentOperator.API.csproj", "{BA41F6A2-EE29-48F9-A3CB-29A05E57CF30}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocumentOperator.Application", "DocumentOperator.Application\DocumentOperator.Application.csproj", "{B2B735FC-5F39-4CFF-9C54-C4F8820880B6}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocumentOperator.Infrastructure", "DocumentOperator.Infrastructure\DocumentOperator.Infrastructure.csproj", "{C4CA19A8-8168-453B-B4ED-77E032CFE52E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocumentOperator.Domain", "DocumentOperator.Domain\DocumentOperator.Domain.csproj", "{B4C1C3ED-D3E8-4272-8704-2E73CEA6A0DD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BA41F6A2-EE29-48F9-A3CB-29A05E57CF30}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BA41F6A2-EE29-48F9-A3CB-29A05E57CF30}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BA41F6A2-EE29-48F9-A3CB-29A05E57CF30}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BA41F6A2-EE29-48F9-A3CB-29A05E57CF30}.Release|Any CPU.Build.0 = Release|Any CPU + {B2B735FC-5F39-4CFF-9C54-C4F8820880B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B2B735FC-5F39-4CFF-9C54-C4F8820880B6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B2B735FC-5F39-4CFF-9C54-C4F8820880B6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B2B735FC-5F39-4CFF-9C54-C4F8820880B6}.Release|Any CPU.Build.0 = Release|Any CPU + {C4CA19A8-8168-453B-B4ED-77E032CFE52E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C4CA19A8-8168-453B-B4ED-77E032CFE52E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C4CA19A8-8168-453B-B4ED-77E032CFE52E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C4CA19A8-8168-453B-B4ED-77E032CFE52E}.Release|Any CPU.Build.0 = Release|Any CPU + {B4C1C3ED-D3E8-4272-8704-2E73CEA6A0DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B4C1C3ED-D3E8-4272-8704-2E73CEA6A0DD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B4C1C3ED-D3E8-4272-8704-2E73CEA6A0DD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B4C1C3ED-D3E8-4272-8704-2E73CEA6A0DD}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {832CA90A-06D6-4312-9B35-16CC665EB37C} + EndGlobalSection +EndGlobal