php-alma-client icon indicating copy to clipboard operation
php-alma-client copied to clipboard

The Alma Users API can return total_record_count: -1

Open danmichaelo opened this issue 6 years ago • 0 comments

With no further explanation, but seems to indicate unsupported queries. For instance, while AND is supported, querying the same field twice doesn't seem to work:

curl -X GET --header 'Accept: application/json; charset=utf-8' --header 'Authorization: apikey l7xx53d521c9cb214131913a31ac5c4cbd29' 'https://api-eu.hosted.exlibrisgroup.com/almaws/v1/users?limit=5&q=primary_id~dan%20ANDprimary_id~michael' | jq '.'

gives

{
  "total_record_count": -1
}

danmichaelo avatar Jun 19 '18 20:06 danmichaelo