Hi Florian,
I agree. The REST interface was included many years ago, but in the meantime there are various ways – e.g. via db:dir() – to restrict the database view to specific directories. I have added an issue for that [1]. As it will be a breaking change, we’ll probably tackle it with BaseX 10 or later. [1] https://github.com/BaseXdb/basex/issues/2106
The REST output was revised: Resources in subdirectories have been replaced with a summarizing <dir> element. A new BaseX 10 snapshot is available [1].
Best, Christian
[1] https://files.basex.org/maven/org/basex/basex/10.0-SNAPSHOT/basex-10.0-20220...