rest api 액션노드 기능변경

This commit is contained in:
kjs
2025-10-13 12:00:41 +09:00
parent 68308efd22
commit 1274f58c3c
10 changed files with 617 additions and 174 deletions

View File

@@ -118,6 +118,16 @@ function FlowEditorInner() {
displayName: `${type} 노드`,
};
// REST API 소스 노드의 경우
if (type === "restAPISource") {
defaultData.method = "GET";
defaultData.url = "";
defaultData.headers = {};
defaultData.timeout = 30000;
defaultData.responseFields = []; // 빈 배열로 초기화
defaultData.responseMapping = "";
}
// 액션 노드의 경우 targetType 기본값 설정
if (["insertAction", "updateAction", "deleteAction", "upsertAction"].includes(type)) {
defaultData.targetType = "internal"; // 기본값: 내부 DB