BaseX Setting Parameters by REST now working
Wednesday, 27 March 2013 · 2 messages
WF
Willi Firulais27 Mar 2013 22:20 #
Hallo,
I started using baseX and it seems realy to be a great thing.
I like to set a paramter for a dabase using REST - but not success. What i'm doing wrong?
http://127.0.0.1:8080/BaseX77-20130321.085136/rest/osmdb?command=SET+CHOP+FALSE
http://127.0.0.1:8080/BaseX77-20130321.085136/rest/osmdb?command=GET+CHOP
The Paramter value does not change.
Following the instruction on this page only local options can be modified, but "CHOP" is not classified a global option. http://docs.basex.org/wiki/Commands#SET
http://docs.basex.org/wiki/Options
Thx a lot for hints, Willi
CG
Christian Grün27 Mar 2013 23:06 #
Hi Willi,
please note that REST requests are bound to the calling client; as such, they cannot be used to change global settings. If you want to set chop=false for all operations, you should set this option in the configuration files or as a system property [1]. If you want to restrict options to a particular command, you may as well specify them via POST [2].
Best,
Christian
[1] http://docs.basex.org/wiki/Options
[2] http://docs.basex.org/wiki/REST#POST_Requests
Quoted text · Willi Firulais · 27 lines
On Wed, Mar 27, 2013 at 10:20 PM, Willi Firulais <willi.firulais at lycos.com> wrote: > Hallo, > > I started using baseX and it seems realy to be a great thing. > > I like to set a paramter for a dabase using REST - but not success. > What i'm doing wrong? > > http://127.0.0.1:8080/BaseX77-20130321.085136/rest/osmdb?command=SET+CHOP+FALSE > > http://127.0.0.1:8080/BaseX77-20130321.085136/rest/osmdb?command=GET+CHOP > > The Paramter value does not change. > > Following the instruction on this page only local options can be modified, > but "CHOP" is not classified a global option. > http://docs.basex.org/wiki/Commands#SET > http://docs.basex.org/wiki/Options > > Thx a lot for hints, Willi > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 7.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery