Split REST API docs by document type and add Images#186
Conversation
The REST API page was missing the entire Images endpoint group and gave no signal about which endpoints apply to sheet vs. doc documents. Readers creating a doc had no way to know Tabs/Cells return 409, and no documented path for image upload at all. Reorganize into Common (Documents, Images), Sheets-only (Tabs, Cells), and Docs-only (Document Content). Add a coverage table at the top and response-shape tables for Tabs and Cells. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
📝 WalkthroughWalkthroughThe REST API documentation was reorganized with a new capability matrix by document type, expanded create operations (sheets and docs), added complete Images endpoints, enhanced Tabs and Cells field definitions, and clarified Document Content as docs-only with explicit TYPE_MISMATCH handling. ChangesREST API Documentation Enhancements
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Verification: verify:selfResult: ✅ PASS in 138.3s
Verification: verify:integrationResult: ✅ PASS |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Adds @wafflebase/slides as a third surface alongside Sheets and Docs, plus 53-shape library (Phase 1+2), adjustment handles for 9 pilot shapes (P3-A.1), live snap guides, align/distribute toolbar, themed authoring, and layout-change UI. Also ships Sheets cell comments (Phase B), docs peer-avatar caret jump, yorkie-js-sdk 0.7.8 upgrade, and CLI/REST API improvements (docs export imageFetcher, expired session refresh, REST docs split). Minor bump because slides is a new top-level package. Highlights: #184 #185 #186 #187 #188 #189 #190 #191 #192 #197 #198 #201 #202 #203 #204 #205 #206 #207 #209 #210
Summary
developers/rest-api.mdinto Common (Documents, Images), Sheets-only (Tabs, Cells), and Docs-only (Document Content) sections so readers know which endpoints apply to which document type.POST/GET/DELETE /api/v1/workspaces/:wid/images[/imageId]with multipart upload constraints (10 MB, png/jpeg/gif/webp).id,name,type,kind) and Cells (ref,value,formula,style) so readers don't have to guess what comes back.TYPE_MISMATCH409 behavior up front.Why
The page documented Tabs/Cells/Content side by side with no signal that Tabs/Cells reject doc documents and Content rejects sheets. The Images controller (
packages/backend/src/api/v1/images.controller.ts) was completely undocumented despite being part of the public v1 surface used for image upload from both sheets and docs.Test plan
pnpm verify:fastpassespnpm --filter @wafflebase/documentation dev) to confirm anchors and tables render correctly🤖 Generated with Claude Code
Summary by CodeRabbit