I have a list that has folders, e.g.
/sites/mysite/Lists/Useful Links/My Subfolder/
I want to read all list items that belong to the
My Subfolder, but I didn't find a way to do it.
I can read the
My Subfolder itself (e.g. obtain its ID and Title) using:
/sites/mysite/_api/web/lists/getbytitle('Useful Links')/items?$filter=Title eq 'My Subfolder'
However, I can't figure out how to use this information to get the items that belong to this folder.
The returned data contains properties like
Folder, but they don't contain anything like
Alternatively, I was thinking whether a list item has any property to indicate which folder it belongs to, but I couldn't find it either. Something like
ParentFolderId - if I had that, I could select all items from the list and
$filter them by that ParentFolderId.