From e929a51e0a6af73d008147b74019c220e78f94c3 Mon Sep 17 00:00:00 2001 From: daekuk Date: Tue, 16 Dec 2025 09:28:43 +0900 Subject: [PATCH] =?UTF-8?q?api=20=EB=B3=B5=EC=A0=9C=20api=EB=AA=85=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80,=20=ED=8C=9D=EC=97=85=20=EC=97=B4=20?= =?UTF-8?q?=EB=95=8C=20=EB=B6=80=EB=AA=A8=EA=B0=92=20=EA=B0=80=EC=A0=B8?= =?UTF-8?q?=EC=99=80=EC=84=9C=20=EC=84=B8=ED=8C=85,=20spce=EC=9D=98=20debu?= =?UTF-8?q?gger=20=EC=82=AD=EC=A0=9C,=20=EB=AA=A8=EB=93=A0=20path=EC=97=90?= =?UTF-8?q?=20'/'=20=EC=8B=9C=EC=9E=91=EC=8B=9C=20replce=20=EC=8B=9C?= =?UTF-8?q?=ED=82=A4=EB=8A=94=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apim/apiInterfaceManDetail.jsp | 44 ++++++++++++++++--- .../onl/transaction/apim/apiSpecManPopup.jsp | 1 - .../apim/ApiInterfaceController.java | 6 ++- .../transaction/apim/ApiInterfaceService.java | 3 +- 4 files changed, 44 insertions(+), 10 deletions(-) diff --git a/WebContent/jsp/onl/transaction/apim/apiInterfaceManDetail.jsp b/WebContent/jsp/onl/transaction/apim/apiInterfaceManDetail.jsp index 65dada2..df04283 100644 --- a/WebContent/jsp/onl/transaction/apim/apiInterfaceManDetail.jsp +++ b/WebContent/jsp/onl/transaction/apim/apiInterfaceManDetail.jsp @@ -834,10 +834,19 @@ $("input[name=bzwkSvcKeyName]").val($("input[name=eaiTranName]").val()); } - // 사용자 편의를 위해 inboundRestPath 앞에 "/" 는 제외함. + // 사용자 편의를 위해 Path 앞에 "/" 는 제외, 복제도 포함. $("input[name=inboundRestPath]").val(function(index, value) { return value.replace(/^\/+/, ""); }); + $("input[name=inboundResponseRestPath]").val(function(index, value) { + return value.replace(/^\/+/, ""); + }); + $("input[name=outboundRestPath]").val(function(index, value) { + return value.replace(/^\/+/, ""); + }); + $("input[name=outboundResponseRestPath]").val(function(index, value) { + return value.replace(/^\/+/, ""); + }); var postData = $('#ajaxForm').serializeArray(); if (isDetail){ @@ -1235,7 +1244,15 @@ $('#stdCommonValueModal').modal('hide'); }); - function setupCloneInterfaceModal() { + function setupCloneInterfaceModal(event) { + const eaiBzwkDstcd = $('#eaiBzwkDstcd').val(); + const eaiSvcDesc = $('#eaiSvcDesc').val(); + const inboundHttpMethod = $('#inboundHttpMethod').val(); + + $('#newBizCode').val(eaiBzwkDstcd).trigger('change'); + $('#newSvcDesc').val(eaiSvcDesc); + $('#newInboundHttpMethod').val(inboundHttpMethod).trigger('change'); + $('#newSvcName').val(''); if($('#inboundRestPath').prop('disabled')){ $('#newRoutingOptionGroup').css('display','none'); @@ -1248,11 +1265,19 @@ const orgApiInterfaceId = getFullSvcName(); const newBizCode = $('#newBizCode').val(); const newSvcName = $('#newSvcName').val(); + const newSvcDesc = $('#newSvcDesc').val(); const newSendRecvType = $('#newSendRecvType').val(); const newInOutType = $('#newInOutType').val(); const newApiInterfaceId = newSvcName+newSendRecvType+newInOutType; const newInboundHttpMethod = $('#newInboundHttpMethod').val(); + + $("input[name=newInboundRestPath]").val(function(index, value) { + return value.replace(/^\/+/, ""); + }); + const newInboundRestPath = $('#newInboundRestPath').val(); + + $.ajax({ type: "POST", url: jsonUrl, @@ -1260,12 +1285,13 @@ cmd: 'CLONE', orgApiInterfaceId, newBizCode, + newSvcDesc, newApiInterfaceId, newInboundHttpMethod, newInboundRestPath, }, beforeSend: function() { - $("[id^='btn_']").prop("disabled", true); + $("[id=doCloneInterfaceButton]").prop("disabled", true); $("#doCloneInterfaceButton").text("처리중 . . . . ."); }, success: function () { @@ -1989,7 +2015,7 @@