From 9de7b89a81f5fe17f371b8ebb867dd439d008b79 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 25 Nov 2025 00:28:46 +0100 Subject: [PATCH] Set up ASP.NET Core Web API project structure Initialized the ASP.NET Core application in `Program.cs` with services for controllers, Swagger/OpenAPI, and middleware for HTTPS redirection and authorization. Added `launchSettings.json` to configure application launch profiles for HTTP, HTTPS, and IIS Express environments. Updated `ReC.API.csproj` to target .NET 8.0, enable nullable reference types, and include the `Swashbuckle.AspNetCore` package for Swagger support. Added `appsettings.json` and `appsettings.Development.json` for logging and environment-specific configurations. Reorganized the solution structure in `ReC.sln` by moving the `ReC.API` project under a `src` folder and updating the `NestedProjects` section. --- ReC.sln | 9 +++++++-- {ReC.API => src/ReC.API}/Program.cs | 0 {ReC.API => src/ReC.API}/Properties/launchSettings.json | 0 {ReC.API => src/ReC.API}/ReC.API.csproj | 0 {ReC.API => src/ReC.API}/appsettings.Development.json | 0 {ReC.API => src/ReC.API}/appsettings.json | 0 6 files changed, 7 insertions(+), 2 deletions(-) rename {ReC.API => src/ReC.API}/Program.cs (100%) rename {ReC.API => src/ReC.API}/Properties/launchSettings.json (100%) rename {ReC.API => src/ReC.API}/ReC.API.csproj (100%) rename {ReC.API => src/ReC.API}/appsettings.Development.json (100%) rename {ReC.API => src/ReC.API}/appsettings.json (100%) diff --git a/ReC.sln b/ReC.sln index be84d7f..f96999c 100644 --- a/ReC.sln +++ b/ReC.sln @@ -1,9 +1,11 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 -VisualStudioVersion = 17.14.36717.8 d17.14 +VisualStudioVersion = 17.14.36717.8 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReC.API", "ReC.API\ReC.API.csproj", "{420218AD-3C27-4003-9A84-36C92352F175}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReC.API", "src\ReC.API\ReC.API.csproj", "{420218AD-3C27-4003-9A84-36C92352F175}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -19,6 +21,9 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {420218AD-3C27-4003-9A84-36C92352F175} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} + EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {F7B09104-4072-4635-9492-9C7C68D96ABD} EndGlobalSection diff --git a/ReC.API/Program.cs b/src/ReC.API/Program.cs similarity index 100% rename from ReC.API/Program.cs rename to src/ReC.API/Program.cs diff --git a/ReC.API/Properties/launchSettings.json b/src/ReC.API/Properties/launchSettings.json similarity index 100% rename from ReC.API/Properties/launchSettings.json rename to src/ReC.API/Properties/launchSettings.json diff --git a/ReC.API/ReC.API.csproj b/src/ReC.API/ReC.API.csproj similarity index 100% rename from ReC.API/ReC.API.csproj rename to src/ReC.API/ReC.API.csproj diff --git a/ReC.API/appsettings.Development.json b/src/ReC.API/appsettings.Development.json similarity index 100% rename from ReC.API/appsettings.Development.json rename to src/ReC.API/appsettings.Development.json diff --git a/ReC.API/appsettings.json b/src/ReC.API/appsettings.json similarity index 100% rename from ReC.API/appsettings.json rename to src/ReC.API/appsettings.json