Skip to content

refactor: content primitive docs — generic params, verb-qualifier routes, edit endpoint#96

Merged
sweetmantech merged 15 commits intomainfrom
feature/content-primitive-docs
Apr 2, 2026
Merged

refactor: content primitive docs — generic params, verb-qualifier routes, edit endpoint#96
sweetmantech merged 15 commits intomainfrom
feature/content-primitive-docs

Conversation

@sidneyswift
Copy link
Copy Markdown
Contributor

@sidneyswift sidneyswift commented Apr 2, 2026

Summary

Full docs update to match the content primitive restructure.

  • Cleaned up Getting Started sidebar (removed misplaced items, merged duplicate groups)
  • Removed all fal.ai/FAL_KEY provider references from descriptions
  • Added security blocks (apiKeyAuth + bearerAuth) to all content endpoints
  • Renamed all content primitive paths to verb-qualifier pattern
  • Replaced render with edit endpoint (operations array + template mode)
  • Added analyze-video endpoint docs
  • Made all schemas generic (reference_image_url, audio_url, topic, audio_urls, model)

Summary by CodeRabbit

  • Documentation
    • Added API reference pages for: Analyze Video; Edit Content; Generate Caption; Generate Image; Generate Video; Transcribe Audio; Upscale Content.
    • Updated API reference navigation to reorganize Content and Posts sections for improved discoverability.

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
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 2, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9ac32633-bf61-4116-99be-3860235cfb6e

📥 Commits

Reviewing files that changed from the base of the PR and between 3c69c63 and 933f184.

📒 Files selected for processing (7)
  • api-reference/content/analyze-video.mdx
  • api-reference/content/edit.mdx
  • api-reference/content/generate-caption.mdx
  • api-reference/content/generate-image.mdx
  • api-reference/content/generate-video.mdx
  • api-reference/content/transcribe-audio.mdx
  • api-reference/openapi.json
✅ Files skipped from review due to trivial changes (6)
  • api-reference/content/edit.mdx
  • api-reference/content/transcribe-audio.mdx
  • api-reference/content/generate-image.mdx
  • api-reference/content/analyze-video.mdx
  • api-reference/content/generate-caption.mdx
  • api-reference/content/generate-video.mdx

📝 Walkthrough

Walkthrough

Added seven new API reference MDX pages under api-reference/content/ (analyze-video, edit, generate-caption, generate-image, generate-video, transcribe-audio, upscale) and updated docs.json to include these entries and adjust Getting Started and Posts navigation.

Changes

Cohort / File(s) Summary
Content API documentation
api-reference/content/analyze-video.mdx, api-reference/content/edit.mdx, api-reference/content/generate-caption.mdx, api-reference/content/generate-image.mdx, api-reference/content/generate-video.mdx, api-reference/content/transcribe-audio.mdx, api-reference/content/upscale.mdx
Added seven new MDX pages. Each file contains frontmatter with a title and an openapi mapping to the respective POST /api/content/... (or PATCH /api/content/video for edit) endpoint.
Docs navigation
docs.json
Updated navigation: removed some Getting Started API references, reorganized Posts grouping, and added the seven new Content API entries under API reference → Content.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 I hopped through docs with whiskers bright,
Seven tiny pages set just right,
Titles tucked in YAML, endpoints in view,
A cheerful nibble — new docs for you! 🥕

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately captures the main changes: refactoring content primitive documentation with verb-qualifier route naming, generic parameters, and an edit endpoint. It aligns well with the file summaries showing new MDX pages and docs.json restructuring.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/content-primitive-docs

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Generate Image, Generate Video, Generate Caption, Transcribe Audio,
Upscale Media — titles were still showing old "Create X" names.

Made-with: Cursor
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
docs.json (1)

124-129: Minor path inconsistency: posts/ vs post/

The Posts group now contains paths with inconsistent naming: api-reference/posts/get (plural) and api-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

📥 Commits

Reviewing files that changed from the base of the PR and between c6913b3 and 5c74338.

📒 Files selected for processing (9)
  • api-reference/content/analyze-video.mdx
  • api-reference/content/edit.mdx
  • api-reference/content/generate-caption.mdx
  • api-reference/content/generate-image.mdx
  • api-reference/content/generate-video.mdx
  • api-reference/content/transcribe-audio.mdx
  • api-reference/content/upscale.mdx
  • api-reference/openapi.json
  • docs.json

Description now says "generate a video" not "generate from an image".
Schema updated: prompt added, image_url removed from required.

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
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'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KISS - why not simply POST /api/content/analyze?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
openapi: 'POST /api/content/analyze-video'
openapi: 'POST /api/content/analyze'

@@ -0,0 +1,4 @@
---
title: 'Edit Content'
openapi: 'POST /api/content/edit'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KISS - why not simpler?

Suggested change
openapi: 'POST /api/content/edit'
openapi: 'PATCH /api/content/video'

@@ -0,0 +1,4 @@
---
title: 'Generate Caption'
openapi: 'POST /api/content/generate-caption'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KISS - why not simpler?

Suggested change
openapi: 'POST /api/content/generate-caption'
openapi: 'POST /api/content/caption'

@@ -0,0 +1,4 @@
---
title: 'Generate Image'
openapi: 'POST /api/content/generate-image'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KISS - why not simpler?

Suggested change
openapi: 'POST /api/content/generate-image'
openapi: 'POST /api/content/image'

@@ -0,0 +1,4 @@
---
title: 'Generate Video'
openapi: 'POST /api/content/generate-video'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KISS - why not simpler?

Suggested change
openapi: 'POST /api/content/generate-video'
openapi: 'POST /api/content/video'

@@ -0,0 +1,4 @@
---
title: 'Transcribe Audio'
openapi: 'POST /api/content/transcribe-audio'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KISS - why not simpler?

Suggested change
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>
@sweetmantech sweetmantech merged commit c20e95f into main Apr 2, 2026
2 checks passed
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.

2 participants