diff --git a/Dockerfile b/Dockerfile
index f99697f..9073787 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,7 +7,7 @@ COPY . .
# Build the application while caching Maven dependencies to speed up future builds
RUN --mount=type=cache,target=/root/.m2 \
- mvn clean package -DENV_VAR=docker -DskipTests -Dgit.skip=true
+ mvn clean package -DENV_VAR=docker -DskipTests
# --- Stage 2: Run the application with a minimal JRE image ---
FROM eclipse-temurin:17-jre
diff --git a/pom.xml b/pom.xml
index 4f180be..062df58 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
4.0.0
com.iemr.admin
admin-api
- 3.8.1
+ 3.8.2
war
Admin-API
Admin Page
diff --git a/src/main/java/com/iemr/admin/controller/health/HealthController.java b/src/main/java/com/iemr/admin/controller/health/HealthController.java
index d1a9e80..3fa49ca 100644
--- a/src/main/java/com/iemr/admin/controller/health/HealthController.java
+++ b/src/main/java/com/iemr/admin/controller/health/HealthController.java
@@ -27,6 +27,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
+import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -52,8 +53,8 @@ public HealthController(HealthService healthService) {
this.healthService = healthService;
}
- @GetMapping
- @Operation(summary = "Check infrastructure health",
+ @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
+ @Operation(summary = "Check infrastructure health",
description = "Returns the health status of MySQL, Redis, and other configured services")
@ApiResponses({
@ApiResponse(responseCode = "200", description = "Services are UP or DEGRADED (operational with warnings)"),
@@ -61,7 +62,7 @@ public HealthController(HealthService healthService) {
})
public ResponseEntity