결과물
OnSureLab
업체가 시안/최종 결과물을 제출하는 API입니다. 버전 관리를 포함합니다.
POST
결과물 제출
엔드포인트
POST /api/onsurelab/executions/:id/deliverablesContent-Type: multipart/form-data
요청 Body (FormData)
| 필드 | 타입 | 필수 | 설명 |
|---|---|---|---|
| file | File | 필수 | 결과물 파일 |
| note | string | - | 메모 (예: "초안", "수정본 v2") |
| version | number | - | 없으면 서버에서 자동 증가 |
| createdBy | string | - | 업로드한 유저/업체 ID |
성공 응답 (201)
{
"success": true,
"data": {
"id": "dlv_abc123def4",
"version": 1,
"url": "https://storage.example.com/bucket/exec_xxx/deliverables/v1_design.ai",
"originalName": "강남역광고_v1.ai",
"size": 5242880,
"mimeType": "application/illustrator",
"note": "초안",
"createdAt": "2025-01-16T14:00:00.000Z",
"createdBy": "vendor_user_id"
}
}GET
결과물 목록 조회
엔드포인트
GET /api/onsurelab/executions/:id/deliverables성공 응답 (200)
{
"success": true,
"data": {
"deliverables": [
{
"id": "dlv_001",
"version": 1,
"url": "https://storage.example.com/...",
"originalName": "강남역광고_v1.ai",
"note": "초안",
"createdAt": "2025-01-16T14:00:00.000Z",
"createdBy": "vendor_user_id"
},
{
"id": "dlv_002",
"version": 2,
"url": "https://storage.example.com/...",
"originalName": "강남역광고_v2_final.ai",
"note": "피드백 반영 최종본",
"createdAt": "2025-01-18T10:00:00.000Z",
"createdBy": "vendor_user_id"
}
]
}
}