Пример #1
0
def query_devices():
    return {"actions": Device.all_to_api(request.json)}
Пример #2
0
def query_devices():
    return {"actions": Device.all_to_api(request.json)}
Пример #3
0
def get_devices():
    query = {}
    for k in request.params.keys():
        query[k] = request.params.get(k)
    return {"devices": Device.all_to_api(query)}
Пример #4
0
def get_devices():
    query = {}
    for k in request.params.keys():
        query[k] = request.params.get(k)
    return {"devices": Device.all_to_api(query)}