You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Adam Kocoloski (JIRA)" <ji...@apache.org> on 2015/10/01 01:11:04 UTC

[jira] [Closed] (COUCHDB-2408) Support POST requests against database changes feed

     [ https://issues.apache.org/jira/browse/COUCHDB-2408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Kocoloski closed COUCHDB-2408.
-----------------------------------

> Support POST requests against database changes feed
> ---------------------------------------------------
>
>                 Key: COUCHDB-2408
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2408
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: HTTP Interface
>            Reporter: Alexander Shorin
>            Priority: Blocker
>              Labels: regression
>             Fix For: 2.0.0
>
>
> CouchDB 2.0:
> {code}
> echo '{"doc_ids": ["000a9c21"]}' | http --json 'http://localhost:15984/hashes/_changes?filter=_doc_ids'
> HTTP/1.1 405 Method Not Allowed
> Allow: GET,HEAD
> Cache-Control: must-revalidate
> Content-Length: 64
> Content-Type: application/json
> Date: Sat, 25 Oct 2014 13:59:48 GMT
> Server: CouchDB/40c5c85 (Erlang OTP/17)
> X-Couch-Request-ID: 1af0cc28
> X-CouchDB-Body-Time: 0
> {
>     "error": "method_not_allowed", 
>     "reason": "Only GET,HEAD allowed"
> }
> {code}
> CouchDB 1.x:
> {code}
> echo '{"doc_ids": ["000a9c21"]}' | http --json 'http://localhost:5984/hashes/_changes?filter=_doc_ids'
> HTTP/1.1 200 OK
> Cache-Control: must-revalidate
> Content-Type: application/json
> Date: Sat, 25 Oct 2014 13:59:08 GMT
> ETag: "9OPJ35EK9PQZ0PRB0IJDVRVVM"
> Server: CouchDB/1.7.0+build.fauxton-257-gade9dae (Erlang OTP/17)
> Transfer-Encoding: chunked
> {
>     "last_seq": 754007, 
>     "results": [
>         {
>             "changes": [
>                 {
>                     "rev": "1-eb2a07b46a7e7b893faeebdccb37f74a"
>                 }
>             ], 
>             "id": "000a9c21", 
>             "seq": 106812
>         }
>     ]
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)