Hello,

the documentation ( https://docs.basex.org/wiki/REST ) contains an example
applying a query via REST to a complete database:

http://localhost:8080/rest/database?query=count(.)

(My understanding is that "database" should be replaced with the name of a
database.)

However, the URL yields an error ("Document is empty"). At any rate, the
documentation should be explicit about the evaluation context of REST calls
with parameter "query" or "run". If the resource identified by the URL is a
single document, the context item is fairly obvious. However, in case of a
database or a database collection, the evaluation context is not obvious.

With kind regards
Hans-Jürgen

Reply via email to