Mayya Sharipova created COUCHDB-3326:
----------------------------------------
Summary: Implement clustered purge API: _purge
Key: COUCHDB-3326
URL: https://issues.apache.org/jira/browse/COUCHDB-3326
Project: CouchDB
Issue Type: New Feature
Components: Database Core, Documentation, HTTP Interface
Reporter: Mayya Sharipova
This implements the clustered purge API:
curl -H 'Content-Type: application/json' -X POST
"http://adm:[email protected]:5984/test1/_purge" -d
'{"d1":["3-410e46c04b51b4c3304ed232790a49da",
"3-420e46c04b51b4c3304ed232790a35db"],"d2":["2-a39d6d63f29a956ae39930f84dd71ec3"],
"d3":["1-bdca7a3ac9503bf6e46d7d7a782e8f03"]}'
Response:
Response: status_code 201 or 202
{
"purged": [
{
"ok": true,
"id": "d1",
"revs": [
"3-410e46c04b51b4c3304ed232790a49da",
"3-420e46c04b51b4c3304ed232790a35db"
]
},
{
"accepted": true,
"id": "d2",
"revs": [
"2-a39d6d63f29a956ae39930f84dd71ec3"
]
},
{
"ok": true,
"id": "d3",
"revs": []
} ],
"purge_seq":
"6-g1AAAABMeJzLYWBgYMpgTmHgz8tPSTV2MDQy1zMAQsMckEQiQ5L8____sxKZ4UoMcSrJAgC9PRRl"
}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)