I need to retrieve the items/documents in a specific folder of our Office 365 hosted SharePoint site, but I always get an resource error. I'm trying to use the FILE REST API for this, documented here: https://msdn.microsoft.com/office/office365/APi/files-rest-operations
The url to the SharePoint site with the files is https://informationresourcemanager.sharepoint.com/irm/fido/1074/Forms/AllItems.aspx
and according to the MSDN documents the call should be
GET {base-url}/Files/{folder-id}/children
and "base-url" should in the case of SharePoint be
https://{tenant}.sharepoint.com/{site-path}/_api/v1.0
Now, I've tried 10 different combinations without getting any good results, so I guess I'm doing something wrong with the base-url or the site-path. Is the correct base-url this for my site
https://informationresourcemanager.sharepoint.com/irm/fido/_api/v1.0/
or just
https://informationresourcemanager.sharepoint.com/irm/_api/v1.0/