REST documentation - bug?

Wednesday, 11 January 2023 · 1 message
HR
Hans-Juergen Rennau11 Jan 2023 08:53 #
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

⚡Generated with XQuery