Hi Arjan,
currently, via REST, only one command at a time can be processed. I have come across an old GitHub issue that was related to your request, and I've just reopened it [1].
Hope this helps, Christian
[1] https://github.com/BaseXdb/basex/issues/559
On Wed, May 21, 2014 at 7:05 PM, Arjan Loeffen arjan.loeffen@armatiek.nl wrote:
Dear BaseX people
I'd like to run several commands in a single post. Example:
OPEN TEST CREATE INDEX ATTRIBUTE CREATE INDEX TEXT CREATE INDEX FULLTEXT OPTIMIZE ALL CLOSE
My request is:
<command> <text> the commands above </text> </command>
But it seems this cannot be done. I get the error:
Stopped at ., 1/10: Syntax: OPEN [name] ([path]) Open database. Opens the database [name], filtered by [path].
Is it possible, and if so, what should I change?
-- Arjan Loeffen, Armatiek BV 06-12918997