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.
This commit is contained in:
41
src/ReC.API/Properties/launchSettings.json
Normal file
41
src/ReC.API/Properties/launchSettings.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"$schema": "http://json.schemastore.org/launchsettings.json",
|
||||
"iisSettings": {
|
||||
"windowsAuthentication": false,
|
||||
"anonymousAuthentication": true,
|
||||
"iisExpress": {
|
||||
"applicationUrl": "http://localhost:9130",
|
||||
"sslPort": 44366
|
||||
}
|
||||
},
|
||||
"profiles": {
|
||||
"http": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"applicationUrl": "http://localhost:5055",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"https": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"applicationUrl": "https://localhost:7184;http://localhost:5055",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"IIS Express": {
|
||||
"commandName": "IISExpress",
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user