Device query

ФитМаркет sales at fitmarket.by
Tue Mar 6 09:39:27 EST 2018


Good afternoon. Help to understand the difference between the two requests where _id is indicated

curl -i 'http://localhost:7557/devices/?query=%7B%22_id%22%3A%22D0154A-ZXV10%20H201L-CE000200000000100000D0154A1BB026%22%7D'

root at test:/usr/lib/node_modules/genieacs/debug# curl -i 'http://localhost:7557/devices/?query=%7B%22_id%22%3A%22D0154A-ZXV10%20H201L-CE000200000000100000D0154A1BB026%22%7D'
HTTP/1.1 200 OK
GenieACS-Version: 1.1.2
Content-Type: application/json
total: 0
Date: Tue, 06 Mar 2018 14:22:13 GMT
Connection: keep-alive
Transfer-Encoding: chunked

[

]

and

curl -i 'http://localhost:7557/devices/?query=%7B%22_id%22%3A%2200259E-HG8245A-485754430AC7DD1D%22%7D'

root at test:/usr/lib/node_modules/genieacs/debug# curl -i 'http://localhost:7557/devices?query=%7B%22_id%22%3A%2200259E-HG8245A-485754430AC7DD1D%22%7D'                                                                              HTTP/1.1 200 OK
GenieACS-Version: 1.1.2
Content-Type: application/json
total: 1
Date: Tue, 06 Mar 2018 14:22:51 GMT
Connection: keep-alive
Transfer-Encoding: chunked

[
{"_id":"00259E-HG8245A-485754430AC7DD1D","_deviceId":{"_Manufacturer":"Huawei Technologies Co., Ltd","_OUI":"00259E","_ProductClass":"HG8245A","_SerialNumber":"485754430AC7DD1D"},"InternetGatewayDevice":{"ManagementServer":{"ParameterKey":{"_object":false,"_value":"","_type":"xsd:string","_timestamp":"2018-03-06T14:22:51.532Z","_writable":false},"_object":true,"ConnectionRequestURL":{"_object":false,"_value":"http://10.127.1.26:7547/2ae991a29305bd10e51e06431373d657","_type":"xsd:string","_timestamp":"2018-03-06T14:22:51.532Z","_writable":true},"_timestamp":"2018-03-03T06:11:02.831Z","ManageableDevice":{"_timestamp":"2018-03-03T06:11:02.831Z","_object":true,"_writable":false},"_writable":true,"X_HW_DSCP":{"_obj....

In the first query where there is a dot (%20), the data is not displayed. 
Where _id without spaces data on the device are displayed.
Sorry for my English.





More information about the Users mailing list