Hi, Gilles:

Support for multiple document delete first appeared in the 8.0-3 release.

As usual, upgrading is recommended to take advantage of fixes like this one.


Hoping that clarifies,


Erik Hennum

________________________________________
From: [email protected] 
[[email protected]] on behalf of Gilles Lenfant 
[[email protected]]
Sent: Thursday, August 06, 2015 7:50 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] REST v1/documents/ DELETE Documentation 
issue (?)

Hi, and thanks for that fast reply !

I'm on a ML 8.0.1.1 development server on MacOSX.
I can repeat the operation with curl, having "PIONANR5L12B0066.xml"
and "PIONANR5L13B0026.xml" documents, and credentials that enable to
delete anything :

==== console ===
$ curl --anyauth --user admin:admin -X DELETE -i
http://localhost:8000/v1/documents?uri=PIONANR5L12B0066.xml\&uri=PIONANR5L13B0026.xml
HTTP/1.1 401 Unauthorized
Server: MarkLogic
WWW-Authenticate: Digest realm="public", qop="auth",
nonce="34b04a294b4a91e1992984c01633e777", opaque="595887df9a43c585"
Content-Type: text/html; charset=utf-8
Content-Length: 209
Connection: Keep-Alive
Keep-Alive: timeout=5

HTTP/1.1 400 Bad Request
Content-type: application/json; charset=UTF-8
Server: MarkLogic
Content-Length: 221
Connection: Keep-Alive
Keep-Alive: timeout=5

{"errorResponse":{"statusCode":400, "status":"Bad Request",
"messageCode":"REST-REPEATEDPARAM", "message":"REST-REPEATEDPARAM:
(rest:REPEATEDPARAM) Endpoint does not support repeated parameter: uri
can only appear once"}}
==== /console ===

Best regards
--
Gilles Lenfant


2015-08-06 15:22 GMT+02:00 Dave Cassel <[email protected]>:
> What version of MarkLogic are you using? ML8 supports multiple uris, but ML7
> does not.
>
> --
> Dave Cassel, @dmcassel
> Technical Community Manager
> MarkLogic Corporation
> http://developer.marklogic.com/
>
>
> From: <[email protected]> on behalf of Gilles Lenfant
> <[email protected]>
> Reply-To: MarkLogic Developer Discussion <[email protected]>
> Date: Thursday, August 6, 2015 at 8:14 AM
> To: "[email protected]" <[email protected]>
> Subject: [MarkLogic Dev General] REST v1/documents/ DELETE Documentation
> issue (?)
>
> Hi,
>
> The REST developer documentation at
> http://docs.marklogic.com/REST/DELETE/v1/documents says that I can
> delete any number of documents ("uri+"), but when I try to delete 2 or
> more documents in one request, I get the following error :
>
> ----
> DELETE
> /v1/documents?uri=python_demo%2Fsample1%2Fdoc1.xml&uri=python_demo%2Fsample1%2Fdoc2.json
> HTTP/1.1" 400 221
>
> HTTP code 400 (REST-REPEATEDPARAM): REST-REPEATEDPARAM:
> (rest:REPEATEDPARAM) Endpoint does not support repeated parameter: uri
> can only appear once
> ----
>
> I did not find (or search correctly) where I did something wrong.
>
> BTW, deletinig one document per request works as expected.
>
> Best regards
> --
> Gilles Lenfant
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to