I have a requirement to get all minor versions of documents in document libraries and list items in lists within a specific SharePoint site(SPWeb). To simplyfy the solution, first I obtained all the items within a SharePoint site using the following REST Search API query.
https://mysharepointserver/sites/mysite/_api/search/postquery
Query Text : 'ContentClass:STS_ListItem'
So it returned all the items within my site. Now I need to get only the minor versions of this items. How should I update my query to get that information? Any suggestions would be highly appreciated.