diff --git a/pom.xml b/pom.xml
index 873f8e7..d283f89 100644
--- a/pom.xml
+++ b/pom.xml
@@ -78,6 +78,11 @@
spring-boot-starter-test
test
+
+ org.json
+ json
+ 20240303
+
org.jacoco
jacoco-maven-plugin
diff --git a/src/main/java/com/consola/lis/configuration/OpenAPIConfig.java b/src/main/java/com/consola/lis/configuration/OpenAPIConfig.java
index b791d55..4630b0d 100644
--- a/src/main/java/com/consola/lis/configuration/OpenAPIConfig.java
+++ b/src/main/java/com/consola/lis/configuration/OpenAPIConfig.java
@@ -1,7 +1,6 @@
package com.consola.lis.configuration;
-import io.swagger.v3.oas.models.security.SecurityRequirement;
import io.swagger.v3.oas.models.security.SecurityScheme;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
@@ -26,14 +25,14 @@ public OpenAPI swagger() {
.bearerFormat("JWT");
// Define security requirement for endpoints that require Bearer token
- SecurityRequirement securityRequirement = new SecurityRequirement()
- .addList("bearerAuth");
+ // SecurityRequirement securityRequirement = new SecurityRequirement()
+ // .addList("bearerAuth");
// Create OpenAPI object and configure servers, info, security schemes, and security requirements
return new OpenAPI()
.info(info)
- .components(new io.swagger.v3.oas.models.Components().addSecuritySchemes("bearerAuth", securityScheme))
- .addSecurityItem(securityRequirement);
+ .components(new io.swagger.v3.oas.models.Components().addSecuritySchemes("bearerAuth", securityScheme));
+ //.addSecurityItem(securityRequirement);
}
diff --git a/src/main/java/com/consola/lis/controller/CategoryController.java b/src/main/java/com/consola/lis/controller/CategoryController.java
index 5b6a52c..f29d09d 100644
--- a/src/main/java/com/consola/lis/controller/CategoryController.java
+++ b/src/main/java/com/consola/lis/controller/CategoryController.java
@@ -1,7 +1,7 @@
package com.consola.lis.controller;
-import com.consola.lis.constans.EndpointConstant;
+import com.consola.lis.util.constans.EndpointConstant;
import com.consola.lis.dto.CategoryDTO;
import com.consola.lis.model.entity.Category;
import com.consola.lis.service.CategoryService;
diff --git a/src/main/java/com/consola/lis/controller/ControllerAdvice.java b/src/main/java/com/consola/lis/controller/ControllerAdvice.java
index 187a8db..d7f7f89 100644
--- a/src/main/java/com/consola/lis/controller/ControllerAdvice.java
+++ b/src/main/java/com/consola/lis/controller/ControllerAdvice.java
@@ -1,7 +1,7 @@
package com.consola.lis.controller;
import com.consola.lis.dto.ErrorDTO;
-import com.consola.lis.exception.*;
+import com.consola.lis.util.exception.*;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
diff --git a/src/main/java/com/consola/lis/controller/Holi.java b/src/main/java/com/consola/lis/controller/Holi.java
deleted file mode 100644
index 0d89197..0000000
--- a/src/main/java/com/consola/lis/controller/Holi.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.consola.lis.controller;
-
-import io.swagger.v3.oas.annotations.security.SecurityRequirement;
-import lombok.RequiredArgsConstructor;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-@RestController
-@RequestMapping("/api/admi/holi")
-@RequiredArgsConstructor
-public class Holi {
-
-
- @SecurityRequirement(name = "bearerAuth")
- @GetMapping
- public String hole() {
- return "holi";
- }
-}
diff --git a/src/main/java/com/consola/lis/controller/InventoryController.java b/src/main/java/com/consola/lis/controller/InventoryController.java
index 6c8173d..aca392a 100644
--- a/src/main/java/com/consola/lis/controller/InventoryController.java
+++ b/src/main/java/com/consola/lis/controller/InventoryController.java
@@ -1,6 +1,6 @@
package com.consola.lis.controller;
-import com.consola.lis.constans.EndpointConstant;
+import com.consola.lis.util.constans.EndpointConstant;
import com.consola.lis.dto.GeneralItemDTO;
import com.consola.lis.dto.QuantizableItemDTO;
import com.consola.lis.model.entity.GeneralItem;
@@ -12,6 +12,7 @@
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.List;
+import java.util.Map;
@Tag(name = "Manage for Inventory", description = "something")
@RestController
@@ -50,8 +51,9 @@ public void deleteCategory(@PathVariable("itemId") String itemId){
}
@GetMapping
- public List