@@ -15,7 +15,7 @@ MerkleDAG.
15
15
16
16
#### curl
17
17
18
- curl -F "file=@test" http://localhost:5001/api/v0/add
18
+ curl -F "file=@test" " http://localhost:5001/api/v0/add"
19
19
20
20
+ Parameters
21
21
+ arg (string , required ) - The path to a file to be added to IPFS.
@@ -31,12 +31,12 @@ MerkleDAG.
31
31
32
32
#### Curl
33
33
34
- curl -F "file=@test" http://localhost:5001/api/v0/add
34
+ curl -F "file=@test" " http://localhost:5001/api/v0/add"
35
35
36
36
+ Body
37
37
38
38
```
39
- curl -F "file=@test" http://localhost:5001/api/v0/add
39
+ curl -F "file=@test" " http://localhost:5001/api/v0/add"
40
40
```
41
41
42
42
+ Response 200 (application/json)
@@ -73,12 +73,12 @@ MerkleDAG.
73
73
74
74
#### Curl
75
75
76
- curl -F "file=@test" http://localhost:5001/api/v0/add?p
76
+ curl -F "file=@test" " http://localhost:5001/api/v0/add?p"
77
77
78
78
+ Body
79
79
80
80
```
81
- curl -F "file=@test" http://localhost:5001/api/v0/add?p
81
+ curl -F "file=@test" " http://localhost:5001/api/v0/add?p"
82
82
```
83
83
84
84
+ Response 200 (application/json)
@@ -120,12 +120,12 @@ MerkleDAG.
120
120
121
121
#### Curl
122
122
123
- curl -F "file=@test" http://localhost:5001/api/v0/add?t
123
+ curl -F "file=@test" " http://localhost:5001/api/v0/add?t"
124
124
125
125
+ Body
126
126
127
127
```
128
- curl -F "file=@test" http://localhost:5001/api/v0/add?t
128
+ curl -F "file=@test" " http://localhost:5001/api/v0/add?t"
129
129
```
130
130
131
131
+ Response 200 (application/json)
@@ -160,12 +160,12 @@ MerkleDAG.
160
160
161
161
#### Curl
162
162
163
- curl -F "file=@test" http://localhost:5001/api/v0/add?n
163
+ curl -F "file=@test" " http://localhost:5001/api/v0/add?n"
164
164
165
165
+ Body
166
166
167
167
```
168
- curl -F "file=@test" http://localhost:5001/api/v0/add?n
168
+ curl -F "file=@test" " http://localhost:5001/api/v0/add?n"
169
169
```
170
170
171
171
+ Response 200 (application/json)
@@ -204,12 +204,12 @@ MerkleDAG.
204
204
205
205
#### Curl
206
206
207
- curl -F "file=@test" http://localhost:5001/api/v0/add?w
207
+ curl -F "file=@test" " http://localhost:5001/api/v0/add?w"
208
208
209
209
+ Body
210
210
211
211
```
212
- curl -F "file=@test" http://localhost:5001/api/v0/add?w
212
+ curl -F "file=@test" " http://localhost:5001/api/v0/add?w"
213
213
```
214
214
215
215
+ Response 200 (application/json)
@@ -248,12 +248,12 @@ MerkleDAG.
248
248
249
249
#### Curl
250
250
251
- curl -F "file=@test" http://localhost:5001/api/v0/add?H
251
+ curl -F "file=@test" " http://localhost:5001/api/v0/add?H"
252
252
253
253
+ Body
254
254
255
255
```
256
- curl -F "file=@test" http://localhost:5001/api/v0/add?H
256
+ curl -F "file=@test" " http://localhost:5001/api/v0/add?H"
257
257
```
258
258
259
259
+ Response 200 (application/json)
@@ -288,12 +288,12 @@ MerkleDAG.
288
288
289
289
#### Curl
290
290
291
- curl -F "file=@test" http://localhost:5001/api/v0/add?s
291
+ curl -F "file=@test" " http://localhost:5001/api/v0/add?s"
292
292
293
293
+ Body
294
294
295
295
```
296
- curl -F "file=@test" http://localhost:5001/api/v0/add?s
296
+ curl -F "file=@test" " http://localhost:5001/api/v0/add?s"
297
297
```
298
298
299
299
+ Response 200 (application/json)
@@ -372,12 +372,12 @@ MerkleDAG.
372
372
373
373
#### curl
374
374
375
- curl - i http://localhost:5001/api/v0/add
375
+ curl - i " http://localhost:5001/api/v0/add"
376
376
377
377
+ Body
378
378
379
379
```
380
- curl -i http://localhost:5001/api/v0/add
380
+ curl -i " http://localhost:5001/api/v0/add"
381
381
```
382
382
383
383
+ Response 400
@@ -414,12 +414,12 @@ Manipulate raw IPFS blocks.
414
414
415
415
#### curl
416
416
417
- curl - i http://localhost:5001/api/v0/block
417
+ curl - i " http://localhost:5001/api/v0/block"
418
418
419
419
+ Body
420
420
421
421
```
422
- curl -i http://localhost:5001/api/v0/block
422
+ curl -i " http://localhost:5001/api/v0/block"
423
423
```
424
424
425
425
+ Response 400
@@ -449,7 +449,7 @@ Manipulate raw IPFS blocks.
449
449
}
450
450
```
451
451
452
- ## get [POST /block/get{?arg}]
452
+ ## get [GET /block/get{?arg}]
453
453
454
454
Store data as a raw ipfs block.
455
455
@@ -460,12 +460,12 @@ Store data as a raw ipfs block.
460
460
461
461
#### curl
462
462
463
- curl - i http://localhost:5001/api/v0/block/get
463
+ curl - i " http://localhost:5001/api/v0/block/get"
464
464
465
465
+ Body
466
466
467
467
```
468
- curl -i http://localhost:5001/api/v0/block/get
468
+ curl -i " http://localhost:5001/api/v0/block/get"
469
469
```
470
470
471
471
+ Response 400
@@ -490,16 +490,16 @@ Store data as a raw ipfs block.
490
490
491
491
The response is the same if the argument is invalid. For instance:
492
492
493
- curl - i http://localhost:5001/api/v0/block/get?arg=kitten
493
+ curl - i " http://localhost:5001/api/v0/block/get?arg=kitten"
494
494
495
495
#### curl
496
496
497
- curl -i http://localhost:5001/api/v0/block/get?arg=
497
+ curl -i " http://localhost:5001/api/v0/block/get?arg="
498
498
499
499
+ Body
500
500
501
501
```
502
- curl -i http://localhost:5001/api/v0/block/get?arg=
502
+ curl -i " http://localhost:5001/api/v0/block/get?arg="
503
503
```
504
504
505
505
+ Response 500
@@ -533,12 +533,12 @@ Store data as a raw ipfs block.
533
533
534
534
#### curl
535
535
536
- curl - i http://localhost:5001/api/v0/block/get?arg=QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o
536
+ curl - i " http://localhost:5001/api/v0/block/get?arg=QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o"
537
537
538
538
+ Body
539
539
540
540
```
541
- curl -i http://localhost:5001/api/v0/block/get?arg=QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o
541
+ curl -i " http://localhost:5001/api/v0/block/get?arg=QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o"
542
542
```
543
543
544
544
+ Response 200
@@ -575,12 +575,12 @@ Stores input as an IPFS block
575
575
576
576
#### curl
577
577
578
- curl - i http://localhost:5001/api/v0/block/put
578
+ curl - i -X POST " http://localhost:5001/api/v0/block/put"
579
579
580
580
+ Body
581
581
582
582
```
583
- curl -i http://localhost:5001/api/v0/block/put
583
+ curl -i -X POST " http://localhost:5001/api/v0/block/put"
584
584
```
585
585
586
586
+ Response 400
@@ -605,16 +605,16 @@ Stores input as an IPFS block
605
605
606
606
The response is the same if there is no data provided. For example:
607
607
608
- curl -i -F "data=" http://localhost:5001/api/v0/block/put
608
+ curl -i -X POST - F "data=" " http://localhost:5001/api/v0/block/put"
609
609
610
610
#### curl
611
611
612
- curl -i -F "data=invalid" http://localhost:5001/api/v0/block/put
612
+ curl -i -X POST - F "data=invalid" " http://localhost:5001/api/v0/block/put"
613
613
614
614
+ Body
615
615
616
616
```
617
- curl -i -F "data=invalid" http://localhost:5001/api/v0/block/put
617
+ curl -i -X POST - F "data=invalid" " http://localhost:5001/api/v0/block/put"
618
618
```
619
619
620
620
+ Response 500
@@ -652,12 +652,12 @@ Stores input as an IPFS block
652
652
653
653
#### curl
654
654
655
- curl -i -F "data=@test" http://localhost:5001/api/v0/block/put
655
+ curl -i -X POST - F "data=@test" " http://localhost:5001/api/v0/block/put"
656
656
657
657
+ Body
658
658
659
659
```
660
- curl -i -F "data=@test" http://localhost:5001/api/v0/block/put
660
+ curl -i -X POST - F "data=@test" " http://localhost:5001/api/v0/block/put"
661
661
```
662
662
663
663
+ Response 200
@@ -687,7 +687,7 @@ Stores input as an IPFS block
687
687
}
688
688
```
689
689
690
- ## stat [POST /block/stat?{arg}]
690
+ ## stat [GET /block/stat?{arg}]
691
691
Retrieve information on a raw ipfs block.
692
692
693
693
+ Parameters
@@ -697,12 +697,12 @@ Retrieve information on a raw ipfs block.
697
697
698
698
#### curl
699
699
700
- curl - i http://localhost:5001/api/v0/block/stat
700
+ curl - i " http://localhost:5001/api/v0/block/stat"
701
701
702
702
+ Body
703
703
704
704
```
705
- curl -i http://localhost:5001/api/v0/block/stat
705
+ curl -i " http://localhost:5001/api/v0/block/stat"
706
706
```
707
707
708
708
+ Response 400
@@ -725,16 +725,16 @@ Retrieve information on a raw ipfs block.
725
725
726
726
The response is the same if there is no argument provided. For example:
727
727
728
- curl - i -F "data=" http://localhost:5001/api/v0/block/stat/arg=
728
+ curl - i -F "data=" " http://localhost:5001/api/v0/block/stat/arg="
729
729
730
730
#### curl
731
731
732
- curl -i http://localhost:5001/api/v0/block/stat/arg=kitten
732
+ curl -i " http://localhost:5001/api/v0/block/stat/arg=kitten"
733
733
734
734
+ Body
735
735
736
736
```
737
- curl -i http://localhost:5001/api/v0/block/stat/arg=kitten
737
+ curl -i " http://localhost:5001/api/v0/block/stat/arg=kitten"
738
738
```
739
739
740
740
+ Response 400
@@ -768,12 +768,12 @@ Retrieve information on a raw ipfs block.
768
768
769
769
#### curl
770
770
771
- curl - i http://localhost:5001/api/v0/block/stat?arg=QmW2WQi7j6c7UgJTarActp7tDNikE4B2qXtFCfLPdsgaTQ
771
+ curl - i " http://localhost:5001/api/v0/block/stat?arg=QmW2WQi7j6c7UgJTarActp7tDNikE4B2qXtFCfLPdsgaTQ"
772
772
773
773
+ Body
774
774
775
775
```
776
- curl -i http://localhost:5001/api/v0/block/stat?arg=QmW2WQi7j6c7UgJTarActp7tDNikE4B2qXtFCfLPdsgaTQ
776
+ curl -i " http://localhost:5001/api/v0/block/stat?arg=QmW2WQi7j6c7UgJTarActp7tDNikE4B2qXtFCfLPdsgaTQ"
777
777
```
778
778
779
779
+ Response 200
0 commit comments