No count on search method REST API

Hi,
Is this possible with the REST API to use search method without specify the count parameter, and so gets all results ?
When I don’t put this parameter, I get only 10 results.
For example, when I have 13 cases, I want to retrieve all of them without writing in the request the count parameter.
Thanks a lot,

Cheers

Which API are you using?

According to the " List the pending tasks API ," you can define the parameter “c” with the number of records you want to retrieve:

http://localhost:8080/bonita/API/bpm/humanTask?p=0&c=10&f=state%3dready&f=user_id%3d104

c: maximum number of elements to retrieve

I would recommend to retrieve records in small chunks; otherwise, a large number could affect the performance of the program.

Hi Randomiopl,
I agree with you with this parameter but my problem is I don’t know how many results I can have, 10, 100 or maybe 10000000.

Get a look to the HTTP reply header. If you have correctly defined the BDM and custom queries with the countFor for every custom query, then you have the pagination count in HTTP the reply header.