noahshaw11 commented on issue #3608:
URL: https://github.com/apache/couchdb/issues/3608#issuecomment-873263210


   After some investigating, I believe the response currently returned by 
`_bulk_get` for a deleted document is correct and standard. Currently, PouchDB 
returns a similar response as CouchDB does. Also, specifying and not specifying 
the `_rev` does not change the response returned.
   ```
   % curl -X POST http://localhost:15984/demo/_bulk_get -H"Authorization: Basic 
YWRtOnBhc3M=" -H"Content-Type: application/json" -d '{"docs":[{"id":"id"}]}'
   {"results": [{"id": "id", "docs": 
[{"ok":{"_id":"id","_rev":"2-9b2e3bcc3752a3a952a3570b2ed4d27e","_deleted":true}}]}]}
   % curl -X POST http://localhost:15984/demo/_bulk_get -H"Authorization: Basic 
YWRtOnBhc3M=" -H"Content-Type: application/json" -d 
'{"docs":[{"id":"id","_rev":"1-59414e77c768bc202142ac82c2f129de"}]}'
   {"results": [{"id": "id", "docs": 
[{"ok":{"_id":"id","_rev":"2-9b2e3bcc3752a3a952a3570b2ed4d27e","_deleted":true}}]}]}
   ```
   The current response is also related to the POST request to `_bulk_docs` to 
delete a doc:
   ```
   POST /db/_bulk_docs HTTP/1.1
   Accept: application/json
   Content-Length: 109
   Content-Type:application/json
   Host: localhost:5984
   {
       "docs": [
           {
               "_id": "FishStew"
           },
           {
               "_id": "LambStew",
               "_rev": "2-0786321986194c92dd3b57dfbfc741ce",
               "_deleted": true
           }
       ]
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to