From 9ae313a1a4e6dfe070e71a0c93423f11ef7f7859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=A0vr=C4=8Dina?= Date: Tue, 17 Mar 2026 00:49:18 +0100 Subject: [PATCH] Remove default scaffolding files - WeatherForecast.cs - Controllers/WeatherForecastController.cs - ClaudeTest.API.http Co-Authored-By: Claude Sonnet 4.6 --- backend/ClaudeTest.API/ClaudeTest.API.http | 6 ---- .../Controllers/WeatherForecastController.cs | 32 ------------------- backend/ClaudeTest.API/WeatherForecast.cs | 12 ------- 3 files changed, 50 deletions(-) delete mode 100644 backend/ClaudeTest.API/ClaudeTest.API.http delete mode 100644 backend/ClaudeTest.API/Controllers/WeatherForecastController.cs delete mode 100644 backend/ClaudeTest.API/WeatherForecast.cs diff --git a/backend/ClaudeTest.API/ClaudeTest.API.http b/backend/ClaudeTest.API/ClaudeTest.API.http deleted file mode 100644 index 31e36d0..0000000 --- a/backend/ClaudeTest.API/ClaudeTest.API.http +++ /dev/null @@ -1,6 +0,0 @@ -@ClaudeTest.API_HostAddress = http://localhost:5203 - -GET {{ClaudeTest.API_HostAddress}}/weatherforecast/ -Accept: application/json - -### diff --git a/backend/ClaudeTest.API/Controllers/WeatherForecastController.cs b/backend/ClaudeTest.API/Controllers/WeatherForecastController.cs deleted file mode 100644 index 3cb907f..0000000 --- a/backend/ClaudeTest.API/Controllers/WeatherForecastController.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Microsoft.AspNetCore.Mvc; - -namespace ClaudeTest.API.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 = DateOnly.FromDateTime(DateTime.Now.AddDays(index)), - TemperatureC = Random.Shared.Next(-20, 55), - Summary = Summaries[Random.Shared.Next(Summaries.Length)] - }) - .ToArray(); - } -} diff --git a/backend/ClaudeTest.API/WeatherForecast.cs b/backend/ClaudeTest.API/WeatherForecast.cs deleted file mode 100644 index 9f7cf01..0000000 --- a/backend/ClaudeTest.API/WeatherForecast.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace ClaudeTest.API; - -public class WeatherForecast -{ - public DateOnly Date { get; set; } - - public int TemperatureC { get; set; } - - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - - public string? Summary { get; set; } -}