Skip to content

Conversation

@lidel
Copy link
Member

@lidel lidel commented Jan 30, 2026

updates http-api-docs to read Content-Type from the new HelpText.HTTP.ResponseContentType field to document returned content-type at https://docs.ipfs.tech/reference/kubo/rpc/ when the next Kubo release (0.40) ships.

changes:

  • extract contentType and httpDescription from Helptext.HTTP
  • add HTTPDescription field to Endpoint struct for future use
  • show Content-Type without backticks for better readability
  • improve response text for endpoints with/without Content-Type

depends on:

updates http-api-docs to read Content-Type from the new
HelpText.HTTP.ResponseContentType field instead of cmd.Extra.

changes:
- extract contentType and httpDescription from Helptext.HTTP
- add HTTPDescription field to Endpoint struct for future use
- show Content-Type without backticks for better readability
- improve response text for endpoints with/without Content-Type

depends on:
- go-ipfs-cmds@0ab930fef0cd (feat: add HTTPHelpText)
- kubo@70b7f0736d5b (feat: use HelpText.HTTP for Content-Type)
@github-actions
Copy link
Contributor

🚀 Build Preview on IPFS ready

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