광고연구소

결과물

OnSureLab

업체가 시안/최종 결과물을 제출하는 API입니다. 버전 관리를 포함합니다.

POST

결과물 제출

엔드포인트
POST /api/onsurelab/executions/:id/deliverables

Content-Type: multipart/form-data

요청 Body (FormData)
필드타입필수설명
fileFile
필수
결과물 파일
notestring-메모 (예: "초안", "수정본 v2")
versionnumber-없으면 서버에서 자동 증가
createdBystring-업로드한 유저/업체 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"
      }
    ]
  }
}