I feel like I'm missing something obvious, but... I'm trying to use the search endpoint in REST API but no matter the search terms, it always returns empty results.
I am able to list my content by doing a GET https://<my subdomain>.atlassian.net/wiki/rest/api/content
However when I try to use the search endpoint with any CQL query, I always get 0 results. For example:
GET https://<my subdomain>.atlassian.net/wiki/rest/api/search?cql=type=page
Did you ever figure this out? I am having the same issue.
in browser the results are fine, from server the call returns correctly but an empty result set.
I tried this URL on our site and it worked as expected:
https://<my subdomain>.atlassian.net/wiki/rest/api/search?cql=type=page
If you open that URL in your browser while you are logged in, do you see a valid response?
Your GET request looks well-formed, otherwise you'd get some error. I'd think that maybe the user you're using to authenticate the request has no access to any content on the site?!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.