RESTful BaseX
Thursday, 11 March 2010 · 1 message
CG
Christian Grün11 Mar 2010 18:17 #
Dear all,
in the "basex-api" package of our Subversion and Maven repository, you find a preliminary implementation of our soon-to-be-released REST API:
http://www.inf.uni-konstanz.de/dbis/basex/maven/org/basex/basex-api/6.0.4/ http://svn.uni-konstanz.de/dbis/basex/trunk/api/src/main/java/org/basex/api/jaxrx
The runnable test class is:
org.basex.api.jaxrx.StartJAXRX
You can play around with the following URLs:
– Root directory: http://localhost:8984/
– List of databases: http://localhost:8984/basex/jaxrx/db
– Perform a factbook query:
http://localhost:8984/basex/jaxrx/db/factbook?query=//name
Beside the GET operation, PUT, POST, and DELETE are implemented as well. The API is built upon JAX-RX, a new REST interface layer for XML databases:
https://sourceforge.net/projects/jax-rx
Documentation and more examples will follow soon. As usual, testing and feedback is welcome!
Christian
___________________________
Christian Gruen
Universitaet Konstanz
Department of Computer & Information Science
D-78457 Konstanz, Germany
Tel: +49 (0)7531/88-4449, Fax: +49 (0)7531/88-3577
http://www.inf.uni-konstanz.de/~gruen
Written for BaseX 6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery