The directory contains 70 files and when I call the File Listing API, I only get 10 file listings returned.
Hi Roy!
You can use offset and pagesize in File Listing API. Example with pagesize:
curl -H 'application-id : xx' -H 'secret-key : xx' -H 'Content-type: application/json' -X GET [url=https://api.backendless.com/v1/files/web?pagesize=100]https://api.backendless.com/v1/files/web?pagesize=100[/url]
Regards,
Kate.
Previously I mentioned that the full listing of files wasn’t being returned but today all the 70 files are being returned.
The returned offset value is what I am questioning now.
Whether I specify the offset=0 or offset 8 for example, the response always returns the offset of 0. I think the offset would be the value that I specified in the URL parameters.
Are you saying that no matter what value of offset you send IN, you get the same listing of files every time?
No, I do get the correct expected file listing with setting the offset to different values. What I am questioning is the “offset” : 0 in all cases. I don’t know if I set the offset=9 in the URL params. then will I get the “offset”:9 in the resonse JSON?
I understand that you mean. It will be corrected.
The following problems with the file listing are happening:
- The returned file listing only contains 10 files even though I set the pageSize=1000 for example.
- Offset in the return response is always 0
-
Please use pagesize, not pageSize.
-
I already responded for this issue in previous message.
I made the change to use pagesize and I get all expected file lists in the response.
Thanks