Strange API response using paging
A
Anders
Hi,
I did some logic using the Workiz API.
I think I found a bug in the way the response is handled when using pagination parameters offset and records.
In the following query there are 33 items in the response.
Follwing gives 33 found jobs
/job/all/?start_date=2022-07-01&offset=0&records=100&only_open=true
Page 1 gives 10, like expected
/job/all/?start_date=2022-07-01&offset=0&records=10&only_open=true
Page 2 gives 10 like expected
/job/all/?start_date=2022-07-01&offset=1&records=10&only_open=true
Page 3 gives 10 like expected
/job/all/?start_date=2022-07-01&offset=2&records=10&only_open=true
Page 4 gives 0 found, should give 3
/job/all/?start_date=2022-07-01&offset=3&records=10&only_open=true
Am I using the parameters wrong or is it a bug?
Jean
It is so confusing to use offset for me too. I’m trying many things sometimes works but I bring all the records and do things in my way. My contact jeanluiz@yahoo.com.br