feat: add download_url field to generated video APIs #20
Reference in New Issue
Block a user
Delete Branch "feature/video-download"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This PR adds download URL functionality to the generated videos API.
Changes
Schema Update (
apps/api/app/schemas/generated_video.py):download_url: str | None = Nonefield toGeneratedVideoResponseAPI Routes Update (
apps/api/app/api/routes/generated_videos.py):_to_generated_video_responsefunction to accept optionaldownload_urlparameterlist_generated_videosendpoint to generate download URLs for each videoget_generated_videoendpoint to include download URL in responseupdate_generated_video_review_statusendpoint to include download URL in responseget_generated_video_download_urlendpoint for explicit download URL requestsAPI Response Examples
List Videos Response
Get Video Response
Technical Details
OSSStorageService.get_download_url()to generate download URLsCloses: MVP feature requirement for video download functionality