Skip to content

Keep POST /v1/videos/generations for backwards compatibility - #69

Merged
TroyHernandez merged 2 commits into
mainfrom
feat/video-legacy-compat
Sep 22, 2026
Merged

TroyHernandez merged 2 commits into
mainfrom
feat/video-legacy-compat

Conversation

@TroyHernandez

Copy link
Copy Markdown
Contributor

0.2.2.11 moved diffuseR::serve's video endpoint to the /v1/videos job
contract but removed the legacy synchronous POST /v1/videos/generations.
This restores that endpoint for backwards compatibility: it again returns
the mp4 bytes inline (no job), alongside the new create/poll/download.

Validation and generation are shared (.dserve_video_render), so the two
paths cannot drift. test_serve.R covers both (47 assertions pass against
source).

The move to the /v1/videos job contract removed the legacy synchronous
video endpoint. Restore it: POST /v1/videos/generations again returns the
mp4 bytes inline (no job), alongside the new POST /v1/videos create/poll/
download. Validation and generation are shared (.dserve_video_render), so
the two paths cannot drift. test_serve.R covers both (47 assertions).
@TroyHernandez
TroyHernandez merged commit 31b7a54 into main Sep 22, 2026
2 checks passed
@TroyHernandez
TroyHernandez deleted the feat/video-legacy-compat branch September 22, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant