자동 생성된 API Spec 목록 및 개수 추가

This commit is contained in:
Rinjae
2026-01-17 23:15:21 +09:00
parent cb551d6888
commit 88710dd4b4
4 changed files with 61 additions and 8 deletions
@@ -713,6 +713,10 @@
color: #dc3545;
font-weight: bold;
}
.api-created {
color: #007bff;
font-weight: bold;
}
</style>
<script>
@@ -732,12 +736,15 @@ function showSyncResultModal(response) {
if (response.success) {
statusClass = "status-success";
var createdCount = response.createdApiSpecCount || 0;
var createdMsg = createdCount > 0 ? "<br/><span style='color:#007bff;'>* " + createdCount + "개의 API Spec이 자동 생성되었습니다.</span>" : "";
if (response.action === 'INSERTED') {
statusMsg = "<strong>반영 완료</strong> - 포탈에 새로운 인증정보가 생성되었습니다.";
statusMsg = "<strong>반영 완료</strong> - 포탈에 새로운 인증정보가 생성되었습니다." + createdMsg;
} else if (response.action === 'UPDATED') {
statusMsg = "<strong>반영 완료</strong> - 기존 포탈 인증정보가 업데이트되었습니다.";
statusMsg = "<strong>반영 완료</strong> - 기존 포탈 인증정보가 업데이트되었습니다." + createdMsg;
} else {
statusMsg = "<strong>반영 완료</strong> - " + response.message;
statusMsg = "<strong>반영 완료</strong> - " + response.message + createdMsg;
}
} else {
if (response.action === 'SKIPPED_NO_ORG') {
@@ -759,6 +766,7 @@ function showSyncResultModal(response) {
var targetApis = response.targetApis || [];
var syncedApis = response.syncedApis || [];
var invalidApis = response.invalidApis || [];
var createdApiSpecs = response.createdApiSpecs || [];
$targetCount.text(targetApis.length);
@@ -772,6 +780,9 @@ function showSyncResultModal(response) {
if (invalidApis.includes(apiId)) {
status = "미존재 (APIGW에 없음)";
statusClass = "api-invalid";
} else if (createdApiSpecs.includes(apiId)) {
status = "반영됨 (Spec 신규생성)";
statusClass = "api-created";
} else if (syncedApis.includes(apiId)) {
status = "반영됨";
statusClass = "api-synced";