Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
Added example curl requests
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLitt committed Dec 26, 2015
1 parent 99a336e commit 02ee57e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Note that directories are added recursively, to form the ipfs
MerkleDAG. A smarter partial add with a staging area (like git)
remains to be implemented.

#### curl

curl -F "file=@test/" -r http://localhost:5001/api/v0/add

+ Parameters
+ arg (string, required) - The path to a file to be added to IPFS
+ recursive (boolean, optional) - Add directory paths recursively
Expand Down Expand Up @@ -128,6 +132,12 @@ Stores input as an IPFS block
ipfs block put is a plumbing command for storing raw ipfs blocks.
It reads from stdin, and <key> is a base58 encoded multihash.

#### curl

curl -i -F "file=@test" http://localhost:5001/api/v0/block/put



+ Parameters
+ arg (string, required) - The path to the data to be stored as an IPFS block

Expand Down

0 comments on commit 02ee57e

Please sign in to comment.