Initialize minimal ASP.NET Core API with OpenAPI support

Set up a basic ASP.NET Core project targeting .NET 9.0 with nullable and implicit usings enabled. Added OpenAPI (Swagger) documentation using NSwag and a simple WeatherForecast endpoint. Included necessary configuration files for development and toolchain support.
This commit is contained in:
2025-02-05 22:31:42 +01:00
parent cb534421cd
commit 7b1b234d82
11 changed files with 205 additions and 0 deletions

9
Api/appsettings.json Normal file
View File

@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}