davidkirwan / ardtweeno

Ardtweeno is an application gateway which bridges devices connected via Serial Link and an Internet Protocol network. The system is designed as a PaaS (platform as a service) for the Raspberry Pi ARM platform.
GNU General Public License v3.0
5 stars 0 forks source link

Extend the API related to nodes and being on the internal watchlist #31

Closed davidkirwan closed 11 years ago

davidkirwan commented 11 years ago

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.

davidkirwan commented 11 years ago

Fixed on dev branch.

davidkirwan commented 11 years ago

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"}
]}
davidkirwan commented 11 years ago

GET /api/v1/watch/+node+ will return JSON like:

{"watched":true|false}