Hi,
If I try the first POST example in the "Command Line" examples section at the end of http://docs.basex.org/wiki/REST, I get the following response from the REST server:
HTTP/1.1 400 Bad Request Content-Length: 24 Server: Jetty(6.1.26)
Unknown parameter: count
For the records, the command is:
curl -i -X POST -H "Content-Type: application/xml" \ -d "<query xmlns='http://www.basex.org/rest'><text>//city/name</text><parameter name='count' value='5'/></query>" \ "admin:admin@localhost:8984/rest/factbook"
Regards,
Thanks Florent,
I've revised the examples; the count parameter has been dismissed in our new REST API, as it can also be represented via XQuery itself.
Christian
On Sat, Oct 29, 2011 at 3:33 PM, Florent Georges lists@fgeorges.org wrote:
Hi,
If I try the first POST example in the "Command Line" examples section at the end of http://docs.basex.org/wiki/REST, I get the following response from the REST server:
HTTP/1.1 400 Bad Request Content-Length: 24 Server: Jetty(6.1.26)
Unknown parameter: count
For the records, the command is:
curl -i -X POST -H "Content-Type: application/xml" \ -d "<query xmlns='http://www.basex.org/rest'><text>//city/name</text><parameter name='count' value='5'/></query>" \ "admin:admin@localhost:8984/rest/factbook"
Regards,
-- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ _______________________________________________ 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