Skip to content
Adrien Béraud edited this page Oct 31, 2017 · 10 revisions

OpenDHT offers an HTTP REST API allowing to use an OpenDHT node as a proxy to the distributed network.

Following ressources are exposed through HTTP REST:

/

Represents the DHT node itself.

GET

Will retreive basic node information with the following JSON structure:

{
    "id":"node_id"
}

/{infohash}

Represents the key {infohash} in the distributed map.

GET

Will perform a get operation on the given key on the distributed map and return a JSON list of results.

POST

Will perform a put operation on the given key on the distributed map.

LISTEN

Will perform a listen operation on the given key on the distributed map.

/{infohash}/{value_id}

Represents a specific value on the distributed map.

GET

Will perform a get operation on the given key and value id on the distributed map and return the result or 404.

PUT

Will perform a put operation on the given key on the distributed map.

Clone this wiki locally