Hi,
The changelog for 6.3.1 says:
[ADD] REST: support for hierarchical collections added; details will follow
I am using 6.3.4, but if I send a post request to /server/collection/subcollection, only the collection gets created (and the document is added to collection, not to subcollection).
In view of the above, could you please throw more light on how the subcollections can be created using REST and how documents can be added to subcollections using REST?
Thanks, Mahender
I am using 6.3.4, but if I send a post request to /server/collection/subcollection, only the collection gets created (and the document is added to collection, not to subcollection).
Could you provide us with an sscce that allow us to reproduce the issue?
In view of the above, could you please throw more light on how the subcollections can be created using REST and how documents can be added to subcollections using REST?
The documentation will be updated with the upcoming official release.
Best, Christian
Dear Mahender,
your mentioned problem seems to be fixed now.
For example in org.basex.examples.jaxrx:
// The java URL connection to the resource URL url = new URL("http://localhost:8984/basex/jax-rx/test/test2/input.xml");
will add the document input.xml to the subcollection test2 in the collection test.
Please check out the newest sources.
Kind regards, Andreas
Am 15.12.10 17:26, schrieb Christian Grün:
I am using 6.3.4, but if I send a post request to /server/collection/subcollection, only the collection gets created (and the document is added to collection, not to subcollection).
Could you provide us with an sscce that allow us to reproduce the issue?
In view of the above, could you please throw more light on how the subcollections can be created using REST and how documents can be added to subcollections using REST?
The documentation will be updated with the upcoming official release.
Best, Christian _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Dear Andreas,
Many thanks for the speedy reply - I shall check it soon.
So, is this updated source made available via updated jars somewhere in Maven, say, as a snapshot revision (I take basex and basex-api.jar from your maven repo for my builds) or do I have to find an alternative way of accomplishing it?
Thanks, Mahender.
----- Original Message ----- From: "Andreas Weiler" andreas.weiler@uni-konstanz.de To: "Christian Grün" christian.gruen@gmail.com Cc: "Mahender Didwania" mahender@didwania.co.uk, "basex-talk" basex-talk@mailman.uni-konstanz.de Sent: Thursday, December 16, 2010 11:00:51 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [basex-talk] Hierarchical collections via REST
Dear Mahender,
your mentioned problem seems to be fixed now.
For example in org.basex.examples.jaxrx:
// The java URL connection to the resource URL url = new URL("http://localhost:8984/basex/jax-rx/test/test2/input.xml");
will add the document input.xml to the subcollection test2 in the collection test.
Please check out the newest sources.
Kind regards, Andreas
Am 15.12.10 17:26, schrieb Christian Grün:
I am using 6.3.4, but if I send a post request to /server/collection/subcollection, only the collection gets created (and the document is added to collection, not to subcollection).
Could you provide us with an sscce that allow us to reproduce the issue?
In view of the above, could you please throw more light on how the subcollections can be created using REST and how documents can be added to subcollections using REST?
The documentation will be updated with the upcoming official release.
Best, Christian _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de