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

Commit

Permalink
Add ifps repo version
Browse files Browse the repository at this point in the history
See #97
  • Loading branch information
RichardLitt committed Jun 28, 2016
1 parent a849803 commit f0d3ffb
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -10445,6 +10445,47 @@ set of stored objects and print repo statistics.
}
```

## version [GET /repo/version]
Show the repo version.

+ Request

#### curl

curl -i "http://localhost:5001/api/v0/repo/version"

+ Body

```
curl -i "http://localhost:5001/api/v0/repo/version"
```

+ Response 200

+ Headers

```
Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Content-Type: application/json
Server: go-ipfs/0.4.2
Trailer: X-Stream-Error
Vary: Origin
Date: Tue, 28 Jun 2016 11:13:47 GMT
Transfer-Encoding: chunked
```

+ Attributes (object)
- Version: "3" (string)

+ Body

```
{
"Version": "3"
}
```

# Group resolve
Resolve the value of names to IPFS.

Expand Down

0 comments on commit f0d3ffb

Please sign in to comment.