Hi, Vikas: Support for server-assigned URIs was added in ML7. Upgrading is highly recommended -- ML7 has many bug fixes and enhancements -- but if that's not possible, you could write a resource service extension to generate a URI and write a document or you could just use a random number generator library in your client application, prepend the directory, and append the extension. (If the number is large enough (the REST API uses unsigned longs) and the directory doesn't contain a large number of documents, the risk of name collisions is miniscule.)
Hoping that helps, Erik Hennum ________________________________ From: [email protected] [[email protected]] on behalf of [email protected] [[email protected]] Sent: Monday, September 15, 2014 12:35 AM To: [email protected] Subject: [MarkLogic Dev General] POST method of document rest api is not working in ML6 Hi I am using curl tool for sending content through POST method of documents rest api in ML6 and ML7 but in ML6 I am getting error Unsupported Method whereas in ML 7 it is working perfectly. Is there any way I can write a command using curl and POST method for ML6 only. Command: curl -X POST -d "<Test>OK</Test>" --digest --user username: password -H "Content-type: application/xml" http://serverip/v1/documents?extension=xml&content=/my/directory/ Regards, Vikas Singh This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
