Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 18Mar 18 Community Expert I'm not sure how to implement pagination using the REST API. In the file retrieval end point you specify the number of files per page and the page number:https://invisioncommunity.com/developers/rest-api?endpoint=downloads/files/GETindexI want to display the page numbers like the web interface does, but I don't see any way to get the total number of pages or files in a category? Are you supposed to just keep incrementing the page number until the call returns no more files?
March 18Mar 18 Author Community Expert This is what I am working on. All the content is being loaded from IPB. Edited March 18Mar 18 by Interferon
March 18Mar 18 Author Community Expert Solution I found these values in the response:totalResultstotalPagesThe documentation just says "this endpoint does not return a response": https://invisioncommunity.com/developers/rest-api?endpoint=downloads/files/GETindex