I'm trying to access an SPS 2010 document library that contains folders, which in turn contain documents. I can successfully list the content of the library and see all folders and root-level documents, yet I can't figure out the way to list the contents of a library folder.
For example, a site has a library called Shared Documents, which in turn contains a folder called F1. I can successfully list the contents of the Shared Documents library:
and even retrieve details for the folder:
but I can't figure out how to list the contents of the folder F1. For example, the most obvious thing doesn't work:
This returns an error that I can't fathom:
The request URI is not valid. Since the segment 'SharedDocuments' refers to a collection, this must be the last segment in the request URI. All intermediate segments must refer to a single resource.
Neither does this:
That request errors out without much specific information.
Sadly, I have to use the REST API, no other methods are acceptable in this specific case. Is it even possible to list subfolders with the REST API on 2010?