diff options
author | Jan Huwald <jh@sotun.de> | 2012-03-30 11:38:30 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2012-03-30 11:38:30 (GMT) |
commit | 47d00af88515a1ea1d432bc8db5bb47a6b057e22 (patch) | |
tree | 7037d608548bf4546a0b6158b59fa5c6eac73b88 | |
parent | 28277700358c4385b88f8e79fb7cbb1668b9e8df (diff) |
webif: add mockup api for client config and node db query
-rwxr-xr-x | files/common/www/service/cgi-bin/cfg_client.json | 9 | ||||
-rwxr-xr-x | files/common/www/service/cgi-bin/nodes.json | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/files/common/www/service/cgi-bin/cfg_client.json b/files/common/www/service/cgi-bin/cfg_client.json new file mode 100755 index 0000000..dc675c9 --- /dev/null +++ b/files/common/www/service/cgi-bin/cfg_client.json @@ -0,0 +1,9 @@ +#!/bin/sh + +echo -e 'Status: 200 OK\r +Content-Type: application/json\r +\r +{"client_name": "mobilaptop", + "client_splash": [false], + "client_access": ["bridged"] +}' diff --git a/files/common/www/service/cgi-bin/nodes.json b/files/common/www/service/cgi-bin/nodes.json new file mode 100755 index 0000000..e0c5206 --- /dev/null +++ b/files/common/www/service/cgi-bin/nodes.json @@ -0,0 +1,10 @@ +#!/bin/sh -e + +echo -e 'Status: 200 OK\r +Content-Type: application/json\r +\r +[{"id": "unique123", "uplink": true, "pos": {"lat": 50.927222, "lon": 11.586111}, "name": "Papst", "owner": "Peter"}, + {"id": "unique124", "uplink": false, "pos": {"lat": 50.937222, "lon": 11.588111}}, + {"id": "unique125", "uplink": false, "pos": {"lat": 50.921222, "lon": 11.587111}, "name": "Wifihorst"}, + {"id": "unique126", "uplink": true, "pos": {"lat": 50.925222, "lon": 11.580111}}, + {"id": "unique127", "uplink": false, "pos": {"lat": 50.930222, "lon": 11.582111}, "owner": "Hans Wurst"}]'
\ No newline at end of file |