I have a document library which may have folders in it. I want to get the most recently uploaded files (say latest 10 files) using REST API, irrespective of which folders they are uploaded to.
I can get the latest files in root folder by using below URL.
But it does not include any files uploaded to folders in the document library.
How can I achieve this? I am open to using client object model also.