Skip to content

Commit 64aa4ab

Browse files
author
gracemann365
committed
feat(api-service): finish health check, (Wrap-up)shared-libs util & integration and all tests
1 parent e82d431 commit 64aa4ab

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.openpay.api.controller;
2+
3+
import org.springframework.web.bind.annotation.GetMapping;
4+
import org.springframework.web.bind.annotation.RestController;
5+
6+
@RestController
7+
public class HealthController {
8+
@GetMapping("/health")
9+
public String health() {
10+
return "UP";
11+
}
12+
}

api-service/src/main/java/com/openpay/api/controller/StatusController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
import com.openpay.api.model.TransactionEntity;
1212
import com.openpay.api.repository.TransactionRepository;
13-
14-
// *** THIS IS THE ONLY CHANGE NEEDED: ***
1513
import com.openpay.shared.dto.StatusResponse;
1614

1715
@RestController

api-service/src/main/java/com/openpay/api/controller/TransactionController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import org.springframework.http.ResponseEntity;
44
import org.springframework.web.bind.annotation.PostMapping;
55
import org.springframework.web.bind.annotation.RequestBody;
6-
import org.springframework.web.bind.annotation.RequestHeader; // <-- Add this import
6+
import org.springframework.web.bind.annotation.RequestHeader;
77
import org.springframework.web.bind.annotation.RequestMapping;
88
import org.springframework.web.bind.annotation.RestController;
99

0 commit comments

Comments
 (0)