Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/super3/dup

Protocol and application for tracking node uptime on a distributed network.
https://github.com/super3/dup

Last synced: 27 days ago
JSON representation

Protocol and application for tracking node uptime on a distributed network.

Awesome Lists containing this project

README

        

# dup
Protocol and application for tracking node uptime on a distributed network.

## /
URL: `http://example.com/`

METHOD: `GET`

Display the latest nodes as defined by seenThreshold.

```
{
"active": [
{
"nodeID": "e4327043c4746c998a758db868e6d6a1ff9ddf0a",
"lastSeen": 1522871547654
},
{
"nodeID": "a14cc24085d7a9ea43ec3712d72b1dbb9ad3d2c0",
"lastSeen": 1522871547912
},
...
]
}
```

## /api/ping
URL: `http://example.com/api/ping/`

METHOD: `GET`

Allow the node to ping.

```
{
"active": [
{
"nodeID": "e4327043c4746c998a758db868e6d6a1ff9ddf0a",
"lastSeen": 1522871547654
},
{
"nodeID": "a14cc24085d7a9ea43ec3712d72b1dbb9ad3d2c0",
"lastSeen": 1522871547912
},
...
]
}
```