Currently pagination feature works only on DataStructures that contains only one entity whatsoever. Often you need to fetch more complex DataStructure with many child entities. It would be useful to allow us paginate over deeper structures.
See the discussion here Pagination with multiple entities. You should use a different API endpoint to load the details and only use paginated lists for loading two-dimensional data (tables).
Final way how to use pagination while returning child entity data:
- Define a view and put the details as CSV
- Define a custom database function and return data as a CSV inside the field
- Use an XSLT transformation on your Data Page and use LookupList function to load the child data