Hi again.
I have two questions about the GET request over /rest/v1/point-values/{xid}
endpoint.
- This endpoint responds an array of collections, something like this:
[
{
"value": 35,
"timestamp": 1560516758380,
"annotation": null
},
{
"value": 35,
"timestamp": 1560516818380,
"annotation": null
},
...
]
While i expected the response to be similar to the one delivered by the events endpoint.
{
"values": [
{
"value": 35,
"timestamp": 1560516758380,
"annotation": null
},
{
"value": 35,
"timestamp": 1560516818380,
"annotation": null
},
...
],
"total": 10
}
I just want to ask if this is the expected behaviour, to adapt my code to this response.
- When i add this query
from=2019-06-14T04:00:00.000Z&to=2019-06-15T03:59:59.999Z
to the GET request, i mean, something like this:
http://[host]:[port]/rest/v1/point-values/{xid}?from=2019-06-14T04:00:00.000Z&to=2019-06-15T03:59:59.999Z
all works flawlessly. But when i put this query from=2019-06-14T00:00:00.000&to=2019-06-14T23:59:59.999
or this query from=1560484800000&to=1560571199999
(the same time range as the previous, but in milliseconds since epoch), it returns me a 400 (bad request) error.
I ask if there is something bad with this format.
Thank you...