-
Notifications
You must be signed in to change notification settings - Fork 8
APIs Used By GU Provider UI
GET /nodes/{nodeId}
- returns node permission status (0, 1, 2 - no permission, sandbox, full access). If nodeId == "auto", return default permissions for local nodes.
PUT /nodes/{nodeId}
- allow connections to the node (or turns on auto mode) and save hub information; body must contain hostName (e.g. myhub), address (e.g. 127.0.0.1:61622) and accessLevel (0, 1 or 2). If nodeId == "auto", then allow connections from all hubs.
DELETE /nodes/{nodeId}
- deny connections to the node. If nodeId == "auto", then deny connections from unknown hubs.
GET /nodes
- returns nodes that are allowed to connect and auto/manual status: { "auto": 2, "allow": [ "0x123...", ...] }
POST /nodes
- sets permissions, body as in GET /nodes
GET /nodes?saved
- returns a JSON list of saved hubs (fields: address, host_name, node_id)
GET /lan/list
- returns all hubs in the local network
PUT /connections/mode/auto?save=1
PUT /connections/mode/manual?save=1
POST /connections/connect?save=1
with request body = [ "0x123..." ]
POST /connections/disconnect?save=1
with request body = [ "0x123..." ]