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

Added Group version #31

Merged
merged 2 commits into from
Feb 9, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,50 @@ Outputs the list of peers that were removed.

# Group version

Show version details about the IPFS node.

## version [GET /version]
Returns the current version of ipfs and exits.

+ Request

#### curl

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

+ Body

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

+ Response 200

+ Headers

```
Content-Type: application/json
Trailer: X-Stream-Error
Transfer-Encoding: chunked
Date: Tue, 02 Feb 2016 22:15:17 GMT
Transfer-Encoding: chunked
```

+ Attributes (object)
- Version: "0.4.0-dev" (string)
- Commit: "b036b23a233a64faa6a456522b0f45763be70e64" (string)
- Repo: "3" (string)

+ Body

```
{
"Version": "0.4.0-dev",
"Commit": "",
"Repo": "3"
}
```

# Data Structures

## Error (object)
Expand Down