Skip to content

docs: fix /api/v0/dag/import response to JSONL (closes #1980) - #2338

Open
wrvnnull wants to merge 1 commit into
ipfs:mainfrom
wrvnnull:fix/dag-import-jsonl
Open

docs: fix /api/v0/dag/import response to JSONL (closes #1980)#2338
wrvnnull wants to merge 1 commit into
ipfs:mainfrom
wrvnnull:fix/dag-import-jsonl

Conversation

@wrvnnull

Copy link
Copy Markdown

Summary

Closes #1980.

The /api/v0/dag/import docs incorrectly described the response as a single JSON body. The endpoint actually returns JSONL (one JSON object per line), and the Stats record is only present when stats=true is passed.

Changes

  • docs/reference/kubo/rpc.md: corrected the Response section for /api/v0/dag/import to show JSONL output and note the conditional Stats record.

Verification

  • Match against the actual kubo behavior described in the issue.

The endpoint returns a JSONL body (one JSON object per line), not a
single JSON document. The Stats record only appears when stats=true.
Updates the documented response example to match actual behavior.
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.

The documented JSON output for /api/v0/dag/import is incorrect

1 participant