I am new to using SharePoint online REST API's. I started with basics by connecting to SharePoint online via Postman and list folders in a subsite. So I have achieved the first step of connecting to SharePoint online via Postman by getting the access token. I am confused as to how to list folders inside a subsite.
So this is my site structure:
https://companyname.sharepoint.com/OM/Customer Invoicing
Here OM is the subsite and Customer Invoicing is the document library.
I want to construct the API URL to access the folders inside Customer Invoicing document library using a GET request.
I tried this:
https://companyname.sharepoint.com/_api/web/GetFolderByServerRelativeUrl(%27OM/Customer Invoicing')/Files
But I think I am doing it wrongly as I need to fetch folders from the document library in a subsite.