Get Question Bundle
GET/v1/questions/:question_id/bundle
Q7 — computed (on-demand) question viz served as one S3-cached zip.
Reconstructs the question's default-viz React file tree from the seeds (the
SAME Jinja2 template_generator real vizzes use), zips ALL files, caches the
zip in S3 under questions/{account}/{id}/{hash}.zip (~1wk freshness,
hash invalidates on edit), and returns a presigned URL. Cache-hit serves the
stored zip; cache-miss recomputes → stores → serves.
The frontend/share-stackblitz consumer fetches + unpacks the zip and renders
it through the existing esbuild-wasm bundle path (mirrors how vizzes are
bundled, but ephemeral + computed). Account-scoped via the account-scoped
QuestionHelper — a caller can only bundle a question its account owns.
Request
Responses
- 200
- 404
- 422
Successful Response
Not found
Validation Error