in the context of tesing Alfresco Share queries (webscripts), I'm trying to call the search REST API from from the command line. I've tried curl (1), Async Http Client (2) or PowerShell-3.0 with the newly introduced cmdlet Invoke-RestMethod (3).
The query for MYTERM I use is
/share/proxy/alfresco/slingshot/search?site=&term=name%3A%22MYTERM%22&tag=&maxResults=20&sort=&query=&repo=false
The query in the browser returns 10 results. I also tried it with a tool like Advanced Rest Client for Chrome which brings same results. But with curl, AHC or PowerShell, I always get only 1 result!
Invoke-RestMethod -Credential $myCredentials -Method GET -Uri 'http://HOSTADDRESS/share/proxy/alfresco/slingshot/search?site=&term=name%3A%22MYTERM%22&tag=&maxResults=20'
What might I be missing?