couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Shorin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COUCHDB-2408) Support POST requests against database changes feed
Date Sat, 25 Oct 2014 14:00:43 GMT
Alexander Shorin created COUCHDB-2408:
-----------------------------------------

             Summary: 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)
            Reporter: Alexander Shorin


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)

Mime
View raw message