From 23a46b4be35277e06ec89f48730eeb694e686be8 Mon Sep 17 00:00:00 2001
From: Kenmegne <stephanie.kenmegne@gmail.com>
Date: Thu, 18 Jun 2026 15:40:06 +0000
Subject: [PATCH] add fdx-commons and fdx-consultation

---
 fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/settings/SettingRSImpl.java |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/settings/SettingRSImpl.java b/fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/settings/SettingRSImpl.java
new file mode 100644
index 0000000..2b3556c
--- /dev/null
+++ b/fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/settings/SettingRSImpl.java
@@ -0,0 +1,28 @@
+package com.megatim.fdxconsultation.service.impl.settings;
+
+import com.megatim.fdxcommons.model.referentiel.Referentiel;
+import com.megatim.fdxconsultation.core.ifaces.settings.SettingsManager;
+import com.megatim.fdxconsultation.model.referentiel.dtos.ReferentielSlimResponse;
+import com.megatim.fdxconsultation.service.ifaces.settings.SettingRS;
+import javax.inject.Inject;
+import javax.ws.rs.Path;
+import javax.ws.rs.core.HttpHeaders;
+import javax.ws.rs.core.Response;
+
+/**
+ *
+ * @author Gabuntu
+ */
+@Path("settings")
+public class SettingRSImpl implements SettingRS {
+
+    @Inject
+    private SettingsManager settingManager;
+
+    @Override
+    public Response currentReferentiel(HttpHeaders headers) {
+        Referentiel referentiel = settingManager.currentReferentiel();
+        return Response.ok(referentiel != null ? new ReferentielSlimResponse(referentiel) : null).build();
+    }
+
+}

--
Gitblit v1.10.0