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-ifaces/src/main/java/com/megatim/fdxconsultation/service/ifaces/documents/CategoryRS.java |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/fdx-consultation/fdxconsultation-service-ifaces/src/main/java/com/megatim/fdxconsultation/service/ifaces/documents/CategoryRS.java b/fdx-consultation/fdxconsultation-service-ifaces/src/main/java/com/megatim/fdxconsultation/service/ifaces/documents/CategoryRS.java
new file mode 100644
index 0000000..b934b8c
--- /dev/null
+++ b/fdx-consultation/fdxconsultation-service-ifaces/src/main/java/com/megatim/fdxconsultation/service/ifaces/documents/CategoryRS.java
@@ -0,0 +1,49 @@
+package com.megatim.fdxconsultation.service.ifaces.documents;
+
+import com.megatim.fdxconsultation.model.documents.Category;
+import com.mgt.rs.security.core.common.Secured;
+import javax.validation.Valid;
+import javax.ws.rs.Consumes;
+import javax.ws.rs.DELETE;
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.HttpHeaders;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+
+/**
+ *
+ * @author Gabuntu
+ */
+public interface CategoryRS {
+
+    @POST
+    @Consumes({MediaType.APPLICATION_JSON})
+    @Produces({MediaType.APPLICATION_JSON})
+    @Path("add")
+    @Secured(action = "ajouter")
+    public Response save(@Context HttpHeaders headers, @Valid Category entity);
+
+    @POST
+    @Consumes({MediaType.APPLICATION_JSON})
+    @Produces({MediaType.APPLICATION_JSON})
+    @Path("update/{id}")
+    @Secured(action = "modifier")
+    public Response update(@Context HttpHeaders headers, @PathParam("id") Long id, @Valid Category entity);
+
+    @DELETE
+    @Consumes({MediaType.APPLICATION_JSON})
+    @Produces({MediaType.APPLICATION_JSON})
+    @Path("delete/{id}")
+    @Secured(action = "supprimer")
+    public void delete(@Context HttpHeaders headers, @PathParam("id") Long id);
+
+    @GET
+    @Produces({MediaType.APPLICATION_JSON})
+    @Path("all")
+    public Response all(@Context HttpHeaders headers);
+}

--
Gitblit v1.10.0