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

Commit

Permalink
Added responses entry
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLitt committed Apr 13, 2016
1 parent cc67f01 commit 6a8232f
Showing 1 changed file with 62 additions and 5 deletions.
67 changes: 62 additions & 5 deletions apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -2633,7 +2633,18 @@ Run a `FindPeer` query through the DHT.
{
"Extra": "",
"ID": "QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
"Responses": null,
"Responses": [
{
"Addrs": [
"/ip4/10.0.0.116/tcp/14001",
"/ip4/127.0.0.1/tcp/14001",
"/ip4/127.0.0.2/tcp/14001",
"/ip4/62.210.92.54/tcp/14001"
],
"ID": "QmdmznJmndCNmfDNZ6pLSFuihXwgSnHbienWCJzJQ4M8By"
},
...
],
"Type": 0
}
```
Expand Down Expand Up @@ -2724,7 +2735,18 @@ FindProviders will return a list of peers who are able to provide the value requ
{
"Extra": "",
"ID": "QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
"Responses": null,
"Responses": [
{
"Addrs": [
"/ip4/10.0.0.116/tcp/14001",
"/ip4/127.0.0.1/tcp/14001",
"/ip4/127.0.0.2/tcp/14001",
"/ip4/62.210.92.54/tcp/14001"
],
"ID": "QmdmznJmndCNmfDNZ6pLSFuihXwgSnHbienWCJzJQ4M8By"
},
...
],
"Type": 0
}
```
Expand Down Expand Up @@ -2813,7 +2835,18 @@ GetValue will return the value stored in the DHT at the given key.
{
"Extra": "",
"ID": "QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
"Responses": null,
"Responses": [
{
"Addrs": [
"/ip4/10.0.0.116/tcp/14001",
"/ip4/127.0.0.1/tcp/14001",
"/ip4/127.0.0.2/tcp/14001",
"/ip4/62.210.92.54/tcp/14001"
],
"ID": "QmdmznJmndCNmfDNZ6pLSFuihXwgSnHbienWCJzJQ4M8By"
},
...
],
"Type": 0
}
```
Expand Down Expand Up @@ -2931,11 +2964,24 @@ PutValue will store the given key value pair in the DHT.
{
"Extra": "",
"ID": "QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
"Responses": null,
"Responses": [
{
"Addrs": [
"/ip4/10.0.0.116/tcp/14001",
"/ip4/127.0.0.1/tcp/14001",
"/ip4/127.0.0.2/tcp/14001",
"/ip4/62.210.92.54/tcp/14001"
],
"ID": "QmdmznJmndCNmfDNZ6pLSFuihXwgSnHbienWCJzJQ4M8By"
},
...
],
"Type": 0
}
```



## query [GET /dht/query{?arg}]
Find the closest peers to a given key by querying through the DHT.

Expand Down Expand Up @@ -3014,7 +3060,18 @@ Find the closest peers to a given key by querying through the DHT.
{
"Extra": "",
"ID": "QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
"Responses": null,
"Responses": [
{
"Addrs": [
"/ip4/10.0.0.116/tcp/14001",
"/ip4/127.0.0.1/tcp/14001",
"/ip4/127.0.0.2/tcp/14001",
"/ip4/62.210.92.54/tcp/14001"
],
"ID": "QmdmznJmndCNmfDNZ6pLSFuihXwgSnHbienWCJzJQ4M8By"
},
...
],
"Type": 0
}
```
Expand Down

0 comments on commit 6a8232f

Please sign in to comment.