quick explanation howto use the locate endpoint
This commit is contained in:
parent
1a8cf4ed5c
commit
3988fff5e6
1 changed files with 14 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue