I have an XQuery that searches for XML documents that have a specific property value (metadata) associated with it. The query below works in the Q Console, however I need to execute it as a GET call using the REST API:
cts:search( fn:collection(), cts:properties-query(cts:element-value-query(xs:QName("type"),"executable")))
How do I convert this XQuery to a REST call that will return the same results?
Send a GET request to the /v1/search endpoint with a structuredQuery parameter set to the HTTP encoded a JSON or XML representation of a properties fragment query containing a value query on an element. See: