ipfs / go-ipfs-api

The go interface to ipfs's HTTP API
MIT License
455 stars 178 forks source link

feat: add DagImport method #287

Closed fabiobozzo closed 1 year ago

fabiobozzo commented 1 year ago

As described in https://github.com/ipfs/go-ipfs-api/issues/286 go-ipfs-api should provide all the methods exposed by the Kubo RPC API v0. This PR provides DagImport while trying to adhere to the structure already in place in dag.go. Please note that multiple files can be imported in a single request, hence the additional shell test and appropriate response decoding.

welcome[bot] commented 1 year ago

Thank you for submitting this PR! A maintainer will be here shortly to review it. We are super grateful, but we are also overloaded! Help us by making sure that:

Getting other community members to do a review would be great help too on complex PRs (you can ask in the chats/forums). If you are unsure about something, just leave us a comment. Next steps:

We currently aim to provide initial feedback/triaging within two business days. Please keep an eye on any labelling actions, as these will indicate priorities and status of your contribution. We are very grateful for your contribution!