Is there any way to get all pages data in one call

Is there any way to get all pages data in one call as we write val res 1= api.getUsers two time for two pages

No, you can’t get all the data in one single call as you can’t be sure how big data can be and if there are 1Lakh of entires it would lead to crash the system, so developers generally don’t create such endpoints.