Closed davidkirwan closed 11 years ago
Fixed on dev branch.
GET /api/v1/watch with authentication returns JSON like:
{"watched":[
{"node":"node0","notifyURL":"http://localhost:5000/push/node0","method":"GET","timeout":"60"},
{"node":"node1","notifyURL":"http://localhost:5000/push/node1","method":"GET","timeout":"60"},
{"node":"node2","notifyURL":"http://localhost:5000/push/node2","method":"GET","timeout":"60"},
{"node":"node3","notifyURL":"http://localhost:5000/push/node3","method":"GET","timeout":"60"}
]}
GET /api/v1/watch/+node+ will return JSON like:
{"watched":true|false}
Develop means to query the gateway if a particular node is on the watchlist. Also expose ability to retrieve list of nodes which are on the watchlist.