@@ -85,12 +85,12 @@ The tests folder also contains great examples that can be used to understand how
85
85
86
86
##### object
87
87
88
- ** Curl * *
88
+ * curl *
89
89
``` sh
90
90
curl ' http://localhost:5001/api/v0/object/get?arg=QmYEqnfCZp7a39Gxrgyv3qRS4MoCTGjegKV6zroU3Rvr52&stream-channels=true' --compressed
91
91
```
92
92
93
- ** Response * *
93
+ * response *
94
94
``` js
95
95
{
96
96
Links: [{
@@ -121,7 +121,7 @@ Add a file (where file is any data) to ipfs returning the hash and name. The
121
121
name value will only be set if you are actually sending a file. A single or
122
122
array of files can be used.
123
123
124
- ** Usage * *
124
+ * usage *
125
125
``` javascript
126
126
ipfs .add (files, function (err , res ) {
127
127
if (err || ! res) return console .error (err)
@@ -142,15 +142,15 @@ var files = ["../files/hello.txt", new Buffer("ipfs!")]
142
142
var files = " ../files/hello.txt"
143
143
```
144
144
145
- ** Curl * *
145
+ * curl *
146
146
``` sh
147
147
curl ' http://localhost:5001/api/v0/add?stream-channels=true' \
148
148
-H ' content-type: multipart/form-data; boundary=a831rwxi1a3gzaorw1w2z49dlsor' \
149
149
-H ' Connection: keep-alive' \
150
150
--data-binary $' --a831rwxi1a3gzaorw1w2z49dlsor\r\n Content-Type: application/octet-stream\r\n Content-Disposition: file; name="file"; filename="Hello.txt"\r\n\r\n hello--a831rwxi1a3gzaorw1w2z49dlsor--' --compressed
151
151
```
152
152
153
- ** Response * *
153
+ * response *
154
154
``` js
155
155
[{
156
156
Hash: string,
@@ -163,7 +163,7 @@ curl 'http://localhost:5001/api/v0/add?stream-channels=true' \
163
163
164
164
Retrieve the contents of a single hash, or array of hashes.
165
165
166
- ** Usage **
166
+ ** usage **
167
167
168
168
``` javascript
169
169
ipfs .cat (hashs, function (err , res ) {
@@ -179,20 +179,20 @@ ipfs.cat(hashs, function(err, res) {
179
179
})
180
180
```
181
181
182
- ** Curl * *
182
+ * curl *
183
183
184
184
``` sh
185
185
curl " http://localhost:5001/api/v0/cat?arg=<hash>&stream-channels=true"
186
186
```
187
187
188
- ** Response * *
188
+ * response *
189
189
190
190
The response is either a readable stream, or a string.
191
191
192
192
##### ls
193
193
Get the node structure of a hash. Included in it is a hash and array to links.
194
194
195
- ** Usage* *
195
+ * Usage*
196
196
``` javascript
197
197
ipfs .ls (hashs, function (err , res ) {
198
198
if (err || ! res) return console .error (err)
@@ -207,12 +207,12 @@ ipfs.ls(hashs, function(err, res) {
207
207
})
208
208
```
209
209
210
- ** Curl* *
210
+ * Curl*
211
211
``` sh
212
212
curl " http://localhost:5001/api/v0/ls?arg=<hash>&stream-channels=true"
213
213
```
214
214
215
- ** Response* *
215
+ * Response*
216
216
``` js
217
217
{
218
218
Objects: [
0 commit comments