From a30c7ad4358a4b7f7eee3552dd11d22cd3b076d7 Mon Sep 17 00:00:00 2001 From: Loic Masi Date: Wed, 4 Mar 2026 13:00:22 +0100 Subject: [PATCH 1/3] Ajout d'un 'Hello World' disponible sur le endpoint '/api/helloworld' --- .gitignore | 3 ++- Webzine.WebApplication/Controllers/ApiController.cs | 6 ++++++ Webzine.WebApplication/Webzine.WebApplication.csproj.user | 6 ++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Webzine.WebApplication/Webzine.WebApplication.csproj.user diff --git a/.gitignore b/.gitignore index a1d490a..8ec35d7 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ obj/ riderModule.iml /_ReSharper.Caches/ [Ll]ogs/ -.idea/ \ No newline at end of file +.idea/ +.vs \ No newline at end of file diff --git a/Webzine.WebApplication/Controllers/ApiController.cs b/Webzine.WebApplication/Controllers/ApiController.cs index 2c2c79e..39e8825 100644 --- a/Webzine.WebApplication/Controllers/ApiController.cs +++ b/Webzine.WebApplication/Controllers/ApiController.cs @@ -12,6 +12,12 @@ public class ApiController : ControllerBase this._logger.LogDebug(1, "NLog injected into VersionController"); } + [HttpGet] + public string HelloWorld() + { + return "Hello World !"; + } + [HttpGet] public IActionResult Version() { diff --git a/Webzine.WebApplication/Webzine.WebApplication.csproj.user b/Webzine.WebApplication/Webzine.WebApplication.csproj.user new file mode 100644 index 0000000..9ff5820 --- /dev/null +++ b/Webzine.WebApplication/Webzine.WebApplication.csproj.user @@ -0,0 +1,6 @@ + + + + https + + \ No newline at end of file From cf3deb4dcb395c648fd235f53dba9917989dbc0d Mon Sep 17 00:00:00 2001 From: mirage <119869686+ClementBobin@users.noreply.github.com> Date: Wed, 4 Mar 2026 16:00:39 +0100 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20Mise=20=C3=A0=20jour=20la=20mise=20?= =?UTF-8?q?en=20page=20et=20am=C3=A9liorer=20DataFactory=20pour=20g=C3=A9n?= =?UTF-8?q?=C3=A9rer=20des=20entit=C3=A9s=20musicales=20avec=20des=20style?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Webzine.Entity/Fixtures/DataFactory.cs | 40 ++++++++++++++++--- .../Views/Shared/_Layout.cshtml | 13 +++--- 2 files changed, 42 insertions(+), 11 deletions(-) diff --git a/Webzine.Entity/Fixtures/DataFactory.cs b/Webzine.Entity/Fixtures/DataFactory.cs index f30274d..5199a8a 100644 --- a/Webzine.Entity/Fixtures/DataFactory.cs +++ b/Webzine.Entity/Fixtures/DataFactory.cs @@ -59,7 +59,20 @@ public class DataFactory public List GenerateArtists(int count) { + var artists = new List(); + for (int i = 0; i < count; i++) + { + artists.Add(new Artiste + { + IdArtiste = i + 1, + Nom = Name.FullName(), + Biographie = Lorem.Paragraph(), + Titres = new List() + }); + } + + return artists; } /// @@ -77,7 +90,8 @@ public class DataFactory styles.Add(new Style { IdStyle = i + 1, - Libelle = styleNames[i] + Libelle = styleNames[i], + Titres = new List(), }); } @@ -90,7 +104,7 @@ public class DataFactory /// Nombre de titres à générer /// Liste des artistes à associer aux titres générés /// Liste de titres de musique générés - public List GenerateTitres(int count, List artists) + public List GenerateTitres(int count, List artists, List