Skip to content

Commit

Permalink
Added cat
Browse files Browse the repository at this point in the history
Had some issues with attributes and body, but I think the use of headers clears it up
  • Loading branch information
RichardLitt committed Dec 8, 2015
1 parent 80df839 commit eed87c3
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -689,10 +689,30 @@ Import a tar file into ipfs

+ Response 200 (text/plain)

## cat [GET /tar/cat]
Export a tar file from ipfs
## cat [GET /cat]
Retrieves the object named by <ipfs-or-ipns-path> and outputs the data it contains.

+ Response 200 (text/plain)
+ Parameters
+ arg (string, required) - The path to the IPFS object(s) to be outputted

+ Response 200

+ Headers
- Transfer-Encoding: chunked
- X-Stream-Output: 1

+ Body

```
$ curl -i http://localhost:5001/api/v0/cat?arg=QmeomffUNfmQy76CQGy9NdmqEnnHU9soCexBnGU3ezPHVH

HTTP/1.1 200 OK
Content-Length: 5
Transfer-Encoding: chunked
X-Stream-Output: 1

test
```

# Group tour
This is a tour that takes you through various IPFS concepts,
Expand Down

0 comments on commit eed87c3

Please sign in to comment.