Ajout d'un 'Hello World' disponible sur le endpoint '/api/helloworld'

This commit is contained in:
Loic Masi
2026-03-04 13:00:22 +01:00
parent cb5fff33e7
commit a30c7ad435
3 changed files with 14 additions and 1 deletions

1
.gitignore vendored
View File

@@ -5,3 +5,4 @@ riderModule.iml
/_ReSharper.Caches/ /_ReSharper.Caches/
[Ll]ogs/ [Ll]ogs/
.idea/ .idea/
.vs

View File

@@ -12,6 +12,12 @@ public class ApiController : ControllerBase
this._logger.LogDebug(1, "NLog injected into VersionController"); this._logger.LogDebug(1, "NLog injected into VersionController");
} }
[HttpGet]
public string HelloWorld()
{
return "Hello World !";
}
[HttpGet] [HttpGet]
public IActionResult Version() public IActionResult Version()
{ {

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ActiveDebugProfile>https</ActiveDebugProfile>
</PropertyGroup>
</Project>