I'm trying to list all files with all properties/fields (ListItemAllFields) for the given server relative path.
- I'm using this method to list files:
https://<sub-domain>.sharepoint.com/sites/<site-name>/_api/web/GetFolderByServerRelativeUrl('/sites/<site-name>/Shared Documents/folder path')/Files
This method list files in for given folder. I want to list all files for the given folder and all sub-folder in it. Is it possible with a single API call?
- If we want to list all fields for a given file, we use
https://<subdomain>.sharepoint.com/sites/<sitename>/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/<site-name>/Shared Documents/file path')/ListItemAllFields
Can't we combine this with the first method I mentioned above? I don't want to make API calls for each and every file.