docs: add /api/upload (Arweave file upload)#178
Conversation
Documents the new dedicated `POST /api/upload` endpoint on api which is parity for chat's `/api/upload`. Adds an "Upload" group under the Content tab.
|
Warning Rate limit exceeded
To continue reviewing without waiting, purchase usage credits in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ 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 |
There was a problem hiding this comment.
1 issue found across 3 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="api-reference/openapi/upload.json">
<violation number="1" location="api-reference/openapi/upload.json:49">
P2: Document missing-file validation as a 400-level error instead of a 500 response.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| } | ||
| } | ||
| }, | ||
| "500": { |
There was a problem hiding this comment.
P2: Document missing-file validation as a 400-level error instead of a 500 response.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At api-reference/openapi/upload.json, line 49:
<comment>Document missing-file validation as a 400-level error instead of a 500 response.</comment>
<file context>
@@ -0,0 +1,123 @@
+ }
+ }
+ },
+ "500": {
+ "description": "Upload failed (no file provided or Arweave error)",
+ "content": {
</file context>
# Conflicts: # docs.json
Documents the new dedicated
POST /api/uploadendpoint on api which is parity for chat's/api/upload(group 2 of the chat→api migration). Adds an Upload group under the Content tab.Test plan
npx mintlify@latest devrenders the new "Upload File" page under Content → UploadSummary by cubic
Adds docs for the
POST /api/uploadendpoint for Arweave file uploads, matching chat’s upload. Adds an Upload group under Content.POST /api/uploadwith multipartfilefield and 200/500 response schemas.Written for commit c879be5. Summary will update on new commits.