-
Notifications
You must be signed in to change notification settings - Fork 1.2k
config #49
Comments
config http-api spec - ipfs-inactive/http-api-spec#29 |
Let me know if the spec needs updating. |
updated this issue |
@diasdavid I was looking into |
@xicombd note that the jsipfs cli might be working through the network, so essentially the way to do it is to fetch the config, open it on a editor and when on save, write it back. |
Ahhh, makes sense. Thanks for the clarification! |
I'm implementing the I'm calling it like this (see the test): const file = 'tests/otherconfig'
ctl.config.replace(file, (err, res) => {
console.log(err, res)
}) And hapi is replying with: { statusCode: 400, error: 'Bad Request', message: 'Invalid multipart payload format' } @diasdavid @dignifiedquire do you have any idea how to make this support Thanks! |
"multipart strikes again™" @xicombd good catch, we certainly need to document that, the reality is that go-ipfs uses a custom made Multipart message format which hapijs is rejecting since it expects something with the format of the spec. This might require some hackery in order to get the same Multipart parser that we have in Go. A way to get this done is
|
https://public.etherpad-mozilla.org/p/multipart-madness js-ipfs hacking
TODO
NOTESHapi passes the request.raw.req here https://github.com/hapijs/subtext/blob/master/lib/index.js#L296 to |
Started implementing a multipart parser for ipfs here: https://github.com/xicombd/ipfs-multipart |
* feat: convert to async/await BREAKING CHANGES: 1. Everything is now async/await 2. No more callbacks, Readable Streams or Pull Streams 3. `stat` and `ls` commands return `cid` objects instead of string hashes 4. `stat` and `ls` commands return all fields, `hash`, `long` etc options are now ignored * chore: standardise error codes, use latest cids and ipld formats * chore: update importer and exporter * chore: update importer again * chore: update deps
To learn more about config, you can
config
ipfs-inactive/http-api-spec#29Implementation Roadmap
The text was updated successfully, but these errors were encountered: