Skip to content

docs(api): fix /wasm status note and document error responses and historyGaps - #324

Open
jeffrey-graham wants to merge 1 commit into
prism-explorer:mainfrom
jeffrey-graham:docs/fix-api-docs-wasm-and-errors-292
Open

jeffrey-graham wants to merge 1 commit into
prism-explorer:mainfrom
jeffrey-graham:docs/fix-api-docs-wasm-and-errors-292

Conversation

@jeffrey-graham

Copy link
Copy Markdown

Summary

  • Updates frontend/src/app/(app)/docs/page.tsx:
    • Corrects the GET /api/contract/:id/wasm note from 404 to 400 for contracts without WASM (such as Stellar Asset Contracts), alongside 404 when the contract is not found and 502 when WASM bytecode cannot be fetched.
    • Documents historyGaps (and indexed creator/deploymentLedger fields) on GET /api/contract/:id.
    • Documents 502 ({ events: [], nextCursor: null, error }) and 400 (invalid cursor) on GET /api/contract/:id/events.
    • Adds an Errors section documenting the { "error": string } JSON payload shape, 429 rate-limiting with Retry-After (in seconds), and every status code returned by the API routes (400, 404, 413, 429, 501, 502).

Verification

  • Ran npx eslint "src/app/(app)/docs/page.tsx" in frontend/.

Closes #292

@vercel

vercel Bot commented Nov 10, 2026

Copy link
Copy Markdown

@jeff-graham-ai is attempting to deploy a commit to the thewealthyplace100-8633's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

Fix the /wasm note and document error responses on the API page

2 participants