d5504166ff
- API: POST /api/upload endpoint (mock storage, real ingest pipeline trigger) - schemas: UploadAssetRequest, UploadAssetResponse - tests: full upload→ingest→asset pipeline test - all 6 integration tests passing
16 lines
476 B
Python
16 lines
476 B
Python
from pydantic import BaseModel, Field
|
|
|
|
|
|
class UploadAssetRequest(BaseModel):
|
|
workspace_id: str = Field(..., min_length=1)
|
|
project_id: str = Field(..., min_length=1)
|
|
library_id: str = Field(..., min_length=1)
|
|
# In real implementation: file would be UploadFile from FastAPI
|
|
# For now we'll use a mock storage_key
|
|
filename: str = Field(..., min_length=1, max_length=255)
|
|
|
|
|
|
class UploadAssetResponse(BaseModel):
|
|
storage_key: str
|
|
ingest_job_id: str
|