OBP 연동 API 개선
This commit is contained in:
+6
-1
@@ -17,7 +17,7 @@ GET {{emsUrl}}/api/apis/KJB
|
||||
GET {{emsUrl}}/api/apis/000002-02/KJB
|
||||
|
||||
|
||||
### 트랜잭션 로그 조회
|
||||
### 트랜잭션 로그 조회 - POST
|
||||
POST {{emsUrl}}/api/transaction/log
|
||||
Content-Type: application/json; application/json; charset=UTF-8
|
||||
|
||||
@@ -27,3 +27,8 @@ Content-Type: application/json; application/json; charset=UTF-8
|
||||
}
|
||||
|
||||
|
||||
|
||||
### 트랜잭션 로그 조회 - GET
|
||||
GET {{emsUrl}}/api/transaction/log?apiServiceNumber=asdasd&txDate=asdasdasd
|
||||
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ import lombok.Getter;
|
||||
public class ObpApiDTO {
|
||||
|
||||
/**
|
||||
* 고정 ID (항상 0)
|
||||
* 고정 ID (항상 null)
|
||||
*/
|
||||
private final int id;
|
||||
private final Integer id;
|
||||
|
||||
/**
|
||||
* API ID (TSEAIHE01.EAISVCNAME)
|
||||
|
||||
@@ -102,7 +102,7 @@ public class ObpApiService {
|
||||
ObpApiDTO.Status status = mapStatus(enabled);
|
||||
|
||||
return ObpApiDTO.builder()
|
||||
.id(0)
|
||||
.id(null)
|
||||
.apiId(eaisvcname)
|
||||
.name(eaisvcdesc)
|
||||
.enabled(enabled)
|
||||
|
||||
@@ -70,6 +70,36 @@ public class ObpGwMetricAfterDTO {
|
||||
@SerializedName("completedCount")
|
||||
private Long completedCount;
|
||||
|
||||
|
||||
// AS-IS 호환을 위한 필드 (null 값으로 리턴)
|
||||
@SerializedName("clusterHostname")
|
||||
private String clusterHostname = null;
|
||||
|
||||
@SerializedName("apiDatabaseId")
|
||||
private Integer apiDatabaseId = null;
|
||||
|
||||
@SerializedName("unauthorizedCount")
|
||||
private Integer authorizedCount = null;
|
||||
|
||||
@SerializedName("backMinTime")
|
||||
private Integer backMinTime = null;
|
||||
|
||||
@SerializedName("backMaxTime")
|
||||
private Integer backMaxTime = null;
|
||||
|
||||
@SerializedName("backSumTime")
|
||||
private Integer backSumTime = null;
|
||||
|
||||
@SerializedName("frontMinTime")
|
||||
private Integer frontMinTime = null;
|
||||
|
||||
@SerializedName("frontMaxTime")
|
||||
private Integer frontMaxTime = null;
|
||||
|
||||
@SerializedName("frontSumTime")
|
||||
private Integer frontSumTime = null;
|
||||
|
||||
|
||||
/**
|
||||
* Entity → DTO 변환
|
||||
*/
|
||||
|
||||
+3
-3
@@ -19,18 +19,18 @@ public class ControlApiController extends BaseRestController {
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/onl/admin/control/controlMan.json", params = "cmd=LIST")
|
||||
@RequestMapping(value = "/control/controlMan.json", params = "cmd=LIST")
|
||||
public ModelAndView selectList(HttpServletRequest request, ControlManUISearch uiSearch) {
|
||||
return controlManController.selectList(request, uiSearch);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/admin/control/controlMan.json", params = "cmd=INSERT")
|
||||
@RequestMapping(value = "/control/controlMan.json", params = "cmd=INSERT")
|
||||
private String insert(HttpServletRequest request, HttpServletResponse response, ControlManUIDetail uiDetail)
|
||||
throws Exception {
|
||||
return controlManController.insert(request, response, uiDetail);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/admin/control/controlMan.json", params = "cmd=DELETE")
|
||||
@RequestMapping(value = "/control/controlMan.json", params = "cmd=DELETE")
|
||||
public String delete(HttpServletRequest request, HttpServletResponse response, ControlManUIDetail uiDetail)
|
||||
throws Exception {
|
||||
return controlManController.delete(request, response, uiDetail);
|
||||
|
||||
Reference in New Issue
Block a user