Hi all,
Please, give me an idea how to find the page by pattern using REST API. For example, in the SQL query i could write: PageTitle like 'Report%' and I'll find pages with titles 'Report2021', 'Report2022' etc.
I tried to use REST API with asterix symbol like that:
http://mysite:myport/rest/api/content/?title=REPORT*&spaceKey=TESTSPACE
No result :(
Thanks in advance.
Hello @krivonos
CQL is not the same syntax as SQL. There are lots of mistakes in the URL you've provided as your example:
I would suggest you spend some time re-reading the Confluence CQL documentation and looking at the examples to get a better understanding of how to construct properly formed CQL queries.
David, thanks for your answer.
That did work for me:
http://mysite:myport/rest/api/content/search?cql=(title~"REPORT*")&(spaceKey=TESTSPACE)
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.