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 @@