quick explanation howto use the locate endpoint

This commit is contained in:
Laura Klünder 2019-12-28 18:29:26 +01:00
parent 1a8cf4ed5c
commit 3988fff5e6

View file

@ -23,6 +23,20 @@ class RoutingViewSet(ViewSet):
/route/ Get routes. /route/ Get routes.
/options/ Get or set route options. /options/ Get or set route options.
/locate/ Wifi locate. /locate/ Wifi locate.
How to use the /locate/ endpoint:
POST visible wifi stations as JSON data like this:
{
"stations": [
{
"bssid": "11:22:33:44:55:66",
"ssid": "36C3",
"level": -55,
"frequency": 5500
},
...
]
}
""" """
@action(detail=False, methods=['get', 'post']) @action(detail=False, methods=['get', 'post'])
def route(self, request, *args, **kwargs): def route(self, request, *args, **kwargs):