diff --git a/pom.xml b/pom.xml
index f0f714e..7541207 100644
--- a/pom.xml
+++ b/pom.xml
@@ -296,11 +296,10 @@
maven-jar-plugin
3.0.2
-
- pl.project13.maven
- git-commit-id-plugin
- 4.9.10
+ io.github.git-commit-id
+ git-commit-id-maven-plugin
+ 9.0.2
get-the-git-infos
@@ -314,11 +313,13 @@
true
${project.build.outputDirectory}/git.properties
- git.commit.id
- git.build.time
+ ^git.branch$
+ ^git.commit.id.abbrev$
+ ^git.build.version$
+ ^git.build.time$
- full
- properties
+ false
+ false
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 f01d279..d1a9e80 100644
--- a/src/main/java/com/iemr/admin/controller/health/HealthController.java
+++ b/src/main/java/com/iemr/admin/controller/health/HealthController.java
@@ -21,40 +21,66 @@
*/
package com.iemr.admin.controller.health;
+import java.time.Instant;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.iemr.admin.service.health.HealthService;
import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
+import io.swagger.v3.oas.annotations.responses.ApiResponses;
+import io.swagger.v3.oas.annotations.tags.Tag;
@RestController
+@RequestMapping("/health")
+@Tag(name = "Health Check", description = "APIs for checking infrastructure health status")
public class HealthController {
private static final Logger logger = LoggerFactory.getLogger(HealthController.class);
- @Autowired
- private HealthService healthService;
+ private final HealthService healthService;
+
+ public HealthController(HealthService healthService) {
+ this.healthService = healthService;
+ }
- @Operation(summary = "Health check endpoint")
- @GetMapping("/health")
- public ResponseEntity