From 004bff43368e38f31345cfe4fdd35d3a573d080f Mon Sep 17 00:00:00 2001 From: Peace Date: Tue, 11 Jun 2024 13:17:30 +0900 Subject: [PATCH] base code --- MinimumWebAPI/PizzaStore.csproj | 9 +++++ MinimumWebAPI/Program.cs | 8 +++++ MinimumWebAPI/Properties/launchSettings.json | 38 ++++++++++++++++++++ MinimumWebAPI/appsettings.Development.json | 8 +++++ MinimumWebAPI/appsettings.json | 9 +++++ 5 files changed, 72 insertions(+) create mode 100644 MinimumWebAPI/PizzaStore.csproj create mode 100644 MinimumWebAPI/Program.cs create mode 100644 MinimumWebAPI/Properties/launchSettings.json create mode 100644 MinimumWebAPI/appsettings.Development.json create mode 100644 MinimumWebAPI/appsettings.json diff --git a/MinimumWebAPI/PizzaStore.csproj b/MinimumWebAPI/PizzaStore.csproj new file mode 100644 index 0000000..1b28a01 --- /dev/null +++ b/MinimumWebAPI/PizzaStore.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + + diff --git a/MinimumWebAPI/Program.cs b/MinimumWebAPI/Program.cs new file mode 100644 index 0000000..c368122 --- /dev/null +++ b/MinimumWebAPI/Program.cs @@ -0,0 +1,8 @@ +using Microsoft.OpenApi.Models; + +var builder = WebApplication.CreateBuilder(args); +var app = builder.Build(); + +app.MapGet("/", () => "Hello World!"); + +app.Run(); diff --git a/MinimumWebAPI/Properties/launchSettings.json b/MinimumWebAPI/Properties/launchSettings.json new file mode 100644 index 0000000..cd73c7b --- /dev/null +++ b/MinimumWebAPI/Properties/launchSettings.json @@ -0,0 +1,38 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:41004", + "sslPort": 44346 + } + }, + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:5114", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "https://localhost:7178;http://localhost:5114", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/MinimumWebAPI/appsettings.Development.json b/MinimumWebAPI/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/MinimumWebAPI/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/MinimumWebAPI/appsettings.json b/MinimumWebAPI/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/MinimumWebAPI/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +}