service and controller done

This commit is contained in:
Olivier PARPAILLON
2025-07-16 10:28:43 +02:00
parent b6242d0f2c
commit 9c24ef5b22
7 changed files with 100 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ public class ClientController {
clientService.add(client);
Map<String, Object> response = new HashMap<>();
response.put("message", "Client created successfully");
response.put("status", true);
response.put("status", 201);
response.put("data", new HashMap<>());
return ResponseEntity.ok(response);
@@ -36,7 +36,7 @@ public class ClientController {
List<Client> result = clientService.findByName(name);
Map<String, Object> response = new HashMap<>();
response.put("message", "List of Clients found");
response.put("status", true);
response.put("status", 200);
response.put("data", result);
return ResponseEntity.ok(response);