Hi,

Following Erik Hennum's, I started to write a client side Python
software following the REST API developer guide

http://docs.marklogic.com/guide/rest-dev/extensions#id_14646
http://docs.marklogic.com/REST/PUT/v1/config/resources/%5Bname%5D

Unfortunately I cannot have what I expected.

https://gist.github.com/glenfant/e7e812c24e30447aaedc

The XQuery that's uploaded is correct an works just as expected in the
query console.

I checked the HTTP request details and the provided credentials and
can't understand why I got a 400 HTTP response status and what does
the error message mean (see the Gist at above URL)

To run the example, just have Python 2.7 and "pip install requests",
and change REST endpoint and credentials accordingly.

Many thanks by advance to unlock me :)

--
Gilles LENFANT
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to