メインコンテンツまでスキップ

추출/병합 엔진 병합 콜백 요청

추출/병합 엔진(SDCmdAgent)이 압축/문서 파일 병합 완료 후 결과를 받아 후처리 하는 API이다.


Method

POST

cdrApiService/callback/merge/{tenant}

Request Path Parameter

KEYOBJECTDESC
tenantString테넌트 구분자

Request Body (json)

KEYOBJECTDESC
codeint병합 결과 코드 (0: 성공, 1: 실패)
fileIdString최상위 파일 ID
parentIdString부모 파일 ID
childIdString현재 처리 파일 ID
filePathString병합 완료된 파일 경로
fileTypeCodeenum파일 타입 코드 ("normal", "document", "zip")
fileTypeCodeDescString파일 타입 설명
isExistBoolean병합 파일 존재 여부
errorsObject에러 정보 (선택적)

Response Body (json)

KEYOBJECTDESC
(빈 응답)String처리 완료 시 빈 문자열 반환

Exception Response Body (json)

KEYOBJECTDESC
msgString오류 메시지

Exception Code

HTTP STATUSCODEMESSAGEDESC
400-Invalid empty value found필수 파라미터 누락 또는 null 값
500-Internal Server Error콜백 처리 중 내부 서버 오류

Sample

REQUEST

{
"code": 0,
"fileId": "80fa0dd5-5e24-11f0-aec5-9f1802aa6861",
"parentId": "80fa0dd5-5e24-11f0-aec5-9f1802aa6861",
"childId": "6870b62e-c0ca-4b04-94dc-a014ba64c5d1",
"filePath": "E:/SDTmp/80fa0dd5-5e24-11f0-aec5-9f1802aa6861/6870b62e-c0ca-4b04-94dc-a014ba64c5d1/Zip/SDTmp630be9/1MB.zip",
"fileTypeCode": "zip",
"fileTypeCodeDesc": "zip",
"isExist": true,
"errors": {
"msg": "MainZipExe Starts(C:\\Windows\\TEMP\\20250711_155856_747cfa37-e285-44a3-8c2a-4e4e9532360f.json)\r\nSDFunc_ZipFiles Start(6870b62e-c0ca-4b04-94dc-a014ba64c5d1)\r\nszCurrentModulePath(E:\\softcamp\\sanitrans\\sanitrans\\bin\\SDArchiveService.ini)\r\nGetEncodingTypeFromSettingFile(0)\r\nSDFunc_ZipFiles Zip File Count(3)\r\nSDFunc_ZipFiles zipping(E:/SDTmp/SD_OUT/80fa0dd5-5e24-11f0-aec5-9f1802aa6861/6870b62e-c0ca-4b04-94dc-a014ba64c5d1/Unz/SDTmp62e850/docx_1MB_1.docx)\r\nSDFunc_ZipFiles zip_result(0)\r\nSDFunc_ZipFiles zipping(E:/SDTmp/SD_OUT/80fa0dd5-5e24-11f0-aec5-9f1802aa6861/6870b62e-c0ca-4b04-94dc-a014ba64c5d1/Unz/SDTmp62e850/docx_1MB_2.docx)\r\nSDFunc_ZipFiles zip_result(0)\r\nSDFunc_ZipFiles zipping(E:/SDTmp/SD_OUT/80fa0dd5-5e24-11f0-aec5-9f1802aa6861/6870b62e-c0ca-4b04-94dc-a014ba64c5d1/Unz/SDTmp62e850/docx_1MB_3.docx)\r\nSDFunc_ZipFiles zip_result(0)\r\nSDFunc_ZipFiles End Success(6870b62e-c0ca-4b04-94dc-a014ba64c5d1)\r\nMainZipExe Ends(C:\\Windows\\TEMP\\20250711_155856_747cfa37-e285-44a3-8c2a-4e4e9532360f.json)\r\n"
}
}

RESPONSE - Success

""

RESPONSE - Exception

{
"msg": "Invalid empty value found : (childId is null)"
}