I had the following query:
https://[tenant].sharepoint.com/_api/search/query?querytext='Path:"https://one365dev1.sharepoint.com/teams/privegroep/Gedeelde%20%20documenten/*%22Isdocument=1"'&Properties=%27EnableDynamicGroups:true'&selectproperties='Title,ServerRedirectedURL,LastModifiedTime,FileType%27&sortlist=%27LastModifiedTime:descending'&rowlimit=10'
but then I realized that it needs to support both /sites/ and /teams/ and thus decided to use an OR query to search in both places for the content. It works now but I am clueless of how to implement the (*%22Isdocument=1) part of the query.
the current query:
https://one365dev1.sharepoint.com/_api/search/query?querytext='Path:"https://[tenant].sharepoint.com/teams/privegroep/Gedeelde%20%20documenten/"+OR++Path:"https://[tenant].sharepoint.com/sites/privegroep/Gedeelde%20%20documenten/"'&Properties='EnableDynamicGroups:true'&selectproperties='Title,ServerRedirectedURL,LastModifiedTime,FileType%27&sortlist=%27LastModifiedTime:descending'
Does anyone have any idea of how to go about adding the filter?