Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • My impression is that pagination is not wanted, that the caller wants either a PDF file containing the concatenation of all documents, or nothing if that is too expensive. Because processing paginated results is very non-trivial. Commented Oct 7, 2020 at 5:54
  • @gnasher729 I missed the "merged into a single file" when I read this initially. I think the real solution would be to decouple the filtering files from the merging files API call, so that you always merge an explicit list of IDs, the current design it too coupled to the desired client behaviour. I added that to my answer. Commented Oct 7, 2020 at 6:52
  • That sounds quite reasonable. I would assume that a list of file ids is never too big to return in one go. (And if it is, then surely the merged files are much much much too large). Commented Oct 8, 2020 at 13:08