Good news but now it's time to choose which database will be used in our project. However, I couldn't fulfill the following scenario with existing REST API:
- Add a document to existing database/collection.
- Retrieve contents of this document at any moment later.
- Update this document partly or overwrite.
- Delete this document.
I hope it'll be covered in the next release. I might have missed something. If there is a way to perform these actions from a remote client machine, please advise. Thanks!
All this can be easily done with our database commands and the client-/server architecture, which will give you more freedom than REST. Some online examples can be found here:
– Version 6.1: http://basex.org/developing – Latest versions: https://svn.uni-konstanz.de/dbis/basex/trunk/examples/src/main/java/org/base...
We know that the current documentation on the latest project code is not sufficient, so feel free to ask for more, Christian
Best regards, Ivan
On 10/18/2010 12:56 PM, Christian Grün wrote:
Thanks, I'm glad to hear it! Is there some estimated date for the next release?
Yes: exactly between Nov 10 and Jan 11. ;)
The next release was planned somewhat earlier; instead, we decided to increase the frequency of stable minor releases. With the next official release, JaxRx will be updated more often, and included in the Maven repository.
Christian
Best regards, Ivan
On 10/18/2010 12:35 PM, Christian Grün wrote:
Dear Ivan,
this is one of the features which is currently discussed for the next release; additionally, you'll soon be allowed to support hierarchic collection paths, such as..
http://localhost:8984/basex/jax-rx/collection/path/to/filename.xml
Some JaxRX interface issues have to be solved first to make this possible.
Hope this helps, Christian
On Mon, Oct 18, 2010 at 10:25 AM,ilagunov@evelopers.com wrote:
Hello,
I've tried using RESTful API HTTP methods PUT and POST for adding a new document to the database. But it appeared to be impossible to specify the name of file to be added.
In POST method we must specify the following URL: http://localhost:8984/basex/jax-rx/collection
In PUT method it's almost the same.
The result is that the file is added with a name like "1287390239789".
Why cannot we specify the URL this way: http://localhost:8984/basex/jax-rx/collection/filename.xml so that the file is added with a name filename.xml?
Best regards, Ivan