Passing query parameter in the restClient call from a fragment

Hi All

We are using restClient to get some object entries in a fragment with below code -

[#assign countriesApiUrl = “/c/countries?page=1&pageSize=40”]
[#assign countriesResponse = restClient.get(countriesApiUrl)]

We have observed that its just returning the first 20 results, and not taking any of query parameters into consideration. its behaving as if only /c/countries is called.

Is it expected behaviour or its an issue? We are using Liferay 2025.Q1.19.

Thanks