Files
webzine/Webzine.WebApplication/Controllers/api/VersionController.cs
mirage 86a87f75ce Add initial project structure and implement basic functionality
- Created MSTestSettings.cs to enable parallel test execution.
- Added StyleTests.cs and TitreTests.cs for unit testing of Style and Titre entities.
- Implemented Webzine.Entity.Tests project with necessary configurations.
- Created SeedDataLocal.cs and SeedDataSpotify.cs for local and Spotify data seeding.
- Established repository contracts for Artiste, Commentaire, Style, and Titre.
- Developed DbEntityRepository and LocalEntityRepository classes.
- Set up Webzine.WebApplication with controllers, logging, and Docker support.
- Configured NLog for logging and added necessary appsettings for development.
- Created initial views and layout for the web application.
- Added Dockerfile and docker-compose configuration for containerization.
2026-03-03 16:22:37 +01:00

27 lines
642 B
C#

using Microsoft.AspNetCore.Mvc;
namespace Webzine.WebApplication.Controllers.api;
[Route("api/[controller]")]
public class VersionController : ControllerBase
{
private readonly ILogger<VersionController> _logger;
public VersionController(ILogger<VersionController> logger)
{
this._logger = logger;
this._logger.LogDebug(1, "NLog injected into VersionController");
}
[HttpGet]
public IActionResult Get()
{
this._logger.LogInformation("Get Version was called");
return Ok(new
{
nom = "webzine",
version = "1.0",
});
}
}