RestAPI - DateTo filter not working for UutReport
AnsweredHi,
I'm writing an application to extract some data using the RestAPI.
Unfortunately, the dateTo filter doesn't work for the "/api/App/UutReport" endpoint (both using GET and POST).
Furthermore, is it possible order by date ASC instead of getting the most recent reports first ?
Thank you
-
Hi Sebastien,
The dateTo filter for /api/App/UutReport works for me. If I use this filter
GET:
/api/App/UutReport?dateFrom=2020-04-14T09%3A16%3A00.534Z&dateTo=2020-04-20T09%3A16%3A00.534Z
POST:
{
"dateFrom": "2020-04-14T00:00:00.000Z",
"dateTo": "2020-04-20T00:00:00.000Z"
}it returns a list of reports from 14th of April to 20th of April.
There isn't a way to change the order of the returned reports.
-
Hi Anders,
I've just found that it doesn't work if the seconds field is not 0. Could you check this on your side ?
Trying GET with 00 seconds:
/api/App/UutReport?dateFrom=2020-04-14T00:00:00.000Z&dateTo=2020-04-20T00:00:00.000Z
Will return a first result with dateTime field matching my filter:
dateTimeUtc":"2020-04-19T11:51:17.0968999"
Trying GET with 10 seconds:
/api/App/UutReport?dateFrom=2020-04-14T00:00:00.000Z&dateTo=2020-04-20T00:00:10.000Z
Will return a first result with dateTime field which DOESN'T match my filter:
dateTimeUtc":"2020-04-30T10:20:26.109"
Please sign in to leave a comment.
Comments
4 comments