Remove default scaffolding files

- WeatherForecast.cs
- Controllers/WeatherForecastController.cs
- ClaudeTest.API.http

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Martin Švrčina 2026-03-17 00:49:18 +01:00
parent 01feed4703
commit 9ae313a1a4
3 changed files with 0 additions and 50 deletions

View File

@ -1,6 +0,0 @@
@ClaudeTest.API_HostAddress = http://localhost:5203
GET {{ClaudeTest.API_HostAddress}}/weatherforecast/
Accept: application/json
###

View File

@ -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<WeatherForecastController> _logger;
public WeatherForecastController(ILogger<WeatherForecastController> logger)
{
_logger = logger;
}
[HttpGet(Name = "GetWeatherForecast")]
public IEnumerable<WeatherForecast> 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();
}
}

View File

@ -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; }
}