From 312e209cf097338e6b93812a03b5beb3094fe24c Mon Sep 17 00:00:00 2001 From: Viltskaa Date: Thu, 4 May 2023 23:33:55 +0400 Subject: [PATCH] Delete unversioned project --- .../Controllers/WeatherForecastController.cs | 32 ------------------- SushiBar/SushiBarStoresApi/Program.cs | 25 --------------- .../Properties/launchSettings.json | 31 ------------------ .../SushiBarStoresApi.csproj | 13 -------- SushiBar/SushiBarStoresApi/WeatherForecast.cs | 12 ------- .../appsettings.Development.json | 8 ----- SushiBar/SushiBarStoresApi/appsettings.json | 9 ------ 7 files changed, 130 deletions(-) delete mode 100644 SushiBar/SushiBarStoresApi/Controllers/WeatherForecastController.cs delete mode 100644 SushiBar/SushiBarStoresApi/Program.cs delete mode 100644 SushiBar/SushiBarStoresApi/Properties/launchSettings.json delete mode 100644 SushiBar/SushiBarStoresApi/SushiBarStoresApi.csproj delete mode 100644 SushiBar/SushiBarStoresApi/WeatherForecast.cs delete mode 100644 SushiBar/SushiBarStoresApi/appsettings.Development.json delete mode 100644 SushiBar/SushiBarStoresApi/appsettings.json diff --git a/SushiBar/SushiBarStoresApi/Controllers/WeatherForecastController.cs b/SushiBar/SushiBarStoresApi/Controllers/WeatherForecastController.cs deleted file mode 100644 index b798c1e..0000000 --- a/SushiBar/SushiBarStoresApi/Controllers/WeatherForecastController.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Microsoft.AspNetCore.Mvc; - -namespace SushiBarStoresApi.Controllers; - -[ApiController] -[Route("[controller]")] -public class WeatherForecastController : ControllerBase -{ - private static readonly string[] Summaries = new[] - { - "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" - }; - - private readonly ILogger _logger; - - public WeatherForecastController(ILogger logger) - { - _logger = logger; - } - - [HttpGet(Name = "GetWeatherForecast")] - public IEnumerable Get() - { - return Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = DateTime.Now.AddDays(index), - TemperatureC = Random.Shared.Next(-20, 55), - Summary = Summaries[Random.Shared.Next(Summaries.Length)] - }) - .ToArray(); - } -} \ No newline at end of file diff --git a/SushiBar/SushiBarStoresApi/Program.cs b/SushiBar/SushiBarStoresApi/Program.cs deleted file mode 100644 index 8264bac..0000000 --- a/SushiBar/SushiBarStoresApi/Program.cs +++ /dev/null @@ -1,25 +0,0 @@ -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(); \ No newline at end of file diff --git a/SushiBar/SushiBarStoresApi/Properties/launchSettings.json b/SushiBar/SushiBarStoresApi/Properties/launchSettings.json deleted file mode 100644 index 530f885..0000000 --- a/SushiBar/SushiBarStoresApi/Properties/launchSettings.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:35897", - "sslPort": 44325 - } - }, - "profiles": { - "SushiBarStoresApi": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "launchUrl": "swagger", - "applicationUrl": "https://localhost:7276;http://localhost:5202", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "launchUrl": "swagger", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - } - } -} diff --git a/SushiBar/SushiBarStoresApi/SushiBarStoresApi.csproj b/SushiBar/SushiBarStoresApi/SushiBarStoresApi.csproj deleted file mode 100644 index 6108b7b..0000000 --- a/SushiBar/SushiBarStoresApi/SushiBarStoresApi.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - net6.0 - enable - enable - - - - - - - diff --git a/SushiBar/SushiBarStoresApi/WeatherForecast.cs b/SushiBar/SushiBarStoresApi/WeatherForecast.cs deleted file mode 100644 index 2ee9336..0000000 --- a/SushiBar/SushiBarStoresApi/WeatherForecast.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace SushiBarStoresApi; - -public class WeatherForecast -{ - public DateTime Date { get; set; } - - public int TemperatureC { get; set; } - - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - - public string? Summary { get; set; } -} \ No newline at end of file diff --git a/SushiBar/SushiBarStoresApi/appsettings.Development.json b/SushiBar/SushiBarStoresApi/appsettings.Development.json deleted file mode 100644 index 0c208ae..0000000 --- a/SushiBar/SushiBarStoresApi/appsettings.Development.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -} diff --git a/SushiBar/SushiBarStoresApi/appsettings.json b/SushiBar/SushiBarStoresApi/appsettings.json deleted file mode 100644 index 10f68b8..0000000 --- a/SushiBar/SushiBarStoresApi/appsettings.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - "AllowedHosts": "*" -}