refactor: content primitive docs — generic params, verb-qualifier routes, edit endpoint#96
Conversation
New endpoints documented: - POST /api/content/create/image — AI image generation - POST /api/content/create/video — image-to-video (or lipsync) - POST /api/content/create/text — LLM on-screen text - POST /api/content/create/audio — Whisper transcription - POST /api/content/create/render — ffmpeg final render (async) - POST /api/content/create/upscale — image/video upscaling Includes OpenAPI schemas, MDX pages, and navigation updates. Made-with: Cursor
…dpoints - Remove Create Content and Create Sandbox from Getting Started sidebar - Merge Posts and Post groups into single Posts group - Remove all fal.ai/FAL_KEY references from endpoint descriptions - Add security blocks (apiKeyAuth + bearerAuth) to all content endpoints Made-with: Cursor
Video analysis endpoint with request/response schemas, security blocks, MDX page, and nav entry in the Content group. Made-with: Cursor
Matches the API route rename — analysis is not content creation. Made-with: Cursor
Renamed all content primitive paths in openapi.json, MDX files, and docs.json nav to match the API route restructure. Made-with: Cursor
- Renamed all music-specific params in openapi.json schemas - Added model param to image, video, audio schemas - Replaced render path/schemas with edit (operations array + template mode) Made-with: Cursor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
✅ Files skipped from review due to trivial changes (6)
📝 WalkthroughWalkthroughAdded seven new API reference MDX pages under Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Generate Image, Generate Video, Generate Caption, Transcribe Audio, Upscale Media — titles were still showing old "Create X" names. Made-with: Cursor
There was a problem hiding this comment.
🧹 Nitpick comments (1)
docs.json (1)
124-129: Minor path inconsistency:posts/vspost/The Posts group now contains paths with inconsistent naming:
api-reference/posts/get(plural) andapi-reference/post/comments(singular). Consider renaming the file/path for consistency in a follow-up.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs.json` around lines 124 - 129, The docs.json Pages array contains inconsistent path names: "api-reference/posts/get" (plural) and "api-reference/post/comments" (singular); pick a consistent convention (e.g., plural "posts") and rename the mismatched entry (e.g., change "api-reference/post/comments" to "api-reference/posts/comments") so all API-reference paths in the Posts group use the same resource naming; update any corresponding filenames/routes to match the new path.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@docs.json`:
- Around line 124-129: The docs.json Pages array contains inconsistent path
names: "api-reference/posts/get" (plural) and "api-reference/post/comments"
(singular); pick a consistent convention (e.g., plural "posts") and rename the
mismatched entry (e.g., change "api-reference/post/comments" to
"api-reference/posts/comments") so all API-reference paths in the Posts group
use the same resource naming; update any corresponding filenames/routes to match
the new path.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 60da677b-f3c2-4e44-a7bc-008df24e002e
📒 Files selected for processing (9)
api-reference/content/analyze-video.mdxapi-reference/content/edit.mdxapi-reference/content/generate-caption.mdxapi-reference/content/generate-image.mdxapi-reference/content/generate-video.mdxapi-reference/content/transcribe-audio.mdxapi-reference/content/upscale.mdxapi-reference/openapi.jsondocs.json
Description now says "generate a video" not "generate from an image". Schema updated: prompt added, image_url removed from required. Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Each description now explains what the endpoint does and what inputs it takes, written for a user with no prior context. Removed jargon, implementation details, and stale parameter references. Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
6 modes documented with per-param descriptions explaining which mode uses which input. All Veo 3.1 params exposed. Made-with: Cursor
| @@ -0,0 +1,4 @@ | |||
| --- | |||
| title: 'Analyze Video' | |||
| openapi: 'POST /api/content/analyze-video' | |||
There was a problem hiding this comment.
KISS - why not simply POST /api/content/analyze?
There was a problem hiding this comment.
| openapi: 'POST /api/content/analyze-video' | |
| openapi: 'POST /api/content/analyze' |
api-reference/content/edit.mdx
Outdated
| @@ -0,0 +1,4 @@ | |||
| --- | |||
| title: 'Edit Content' | |||
| openapi: 'POST /api/content/edit' | |||
There was a problem hiding this comment.
KISS - why not simpler?
| openapi: 'POST /api/content/edit' | |
| openapi: 'PATCH /api/content/video' |
| @@ -0,0 +1,4 @@ | |||
| --- | |||
| title: 'Generate Caption' | |||
| openapi: 'POST /api/content/generate-caption' | |||
There was a problem hiding this comment.
KISS - why not simpler?
| openapi: 'POST /api/content/generate-caption' | |
| openapi: 'POST /api/content/caption' |
| @@ -0,0 +1,4 @@ | |||
| --- | |||
| title: 'Generate Image' | |||
| openapi: 'POST /api/content/generate-image' | |||
There was a problem hiding this comment.
KISS - why not simpler?
| openapi: 'POST /api/content/generate-image' | |
| openapi: 'POST /api/content/image' |
| @@ -0,0 +1,4 @@ | |||
| --- | |||
| title: 'Generate Video' | |||
| openapi: 'POST /api/content/generate-video' | |||
There was a problem hiding this comment.
KISS - why not simpler?
| openapi: 'POST /api/content/generate-video' | |
| openapi: 'POST /api/content/video' |
| @@ -0,0 +1,4 @@ | |||
| --- | |||
| title: 'Transcribe Audio' | |||
| openapi: 'POST /api/content/transcribe-audio' | |||
There was a problem hiding this comment.
KISS - why not simpler?
| openapi: 'POST /api/content/transcribe-audio' | |
| openapi: 'POST /api/content/transcribe' |
Replace verb-heavy paths with RESTful resource names — let HTTP methods convey the action instead of encoding it in the path. - POST /api/content/analyze-video -> POST /api/content/analyze - POST /api/content/generate-caption -> POST /api/content/caption - POST /api/content/generate-image -> POST /api/content/image - POST /api/content/generate-video -> POST /api/content/video - POST /api/content/transcribe-audio -> POST /api/content/transcribe - POST /api/content/edit -> PATCH /api/content/video Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
Full docs update to match the content primitive restructure.
Summary by CodeRabbit