couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fli...@apache.org
Subject [couchdb-documentation] 01/01: Mention the possibility of multipart/related in the PUT /{doc} description
Date Tue, 28 Nov 2017 17:56:12 GMT
This is an automated email from the ASF dual-hosted git repository.

flimzy pushed a commit to branch putType
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git

commit d4bc0dcfb43b74b0e82045550cac4cadf177e27a
Author: Jonathan Hall <flimzy@flimzy.com>
AuthorDate: Tue Nov 28 17:59:58 2017 +0100

    Mention the possibility of multipart/related in the PUT /{doc} description
---
 src/api/document/common.rst | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/api/document/common.rst b/src/api/document/common.rst
index f50ea03..6187311 100644
--- a/src/api/document/common.rst
+++ b/src/api/document/common.rst
@@ -182,14 +182,17 @@
 
     :param db: Database name
     :param docid: Document ID
+
     :<header Accept: - :mimetype:`application/json`
                      - :mimetype:`text/plain`
-    :<header Content-Type: :mimetype:`application/json`
+    :<header Content-Type: - :mimetype:`application/json`
+                           - :mimetype:`multipart/related`
     :<header If-Match: Document's revision. Alternative to `rev` query
       parameter or document key. *Optional*
     :<header X-Couch-Full-Commit: Overrides server's
       :config:option:`commit policy <couchdb/delayed_commits>`. Possible values
       are: ``false`` and ``true``. *Optional*
+
     :query string rev: Document's revision if updating an existing document.
       Alternative to `If-Match` header or document key. *Optional*
     :query string batch: Stores document in :ref:`batch mode
@@ -200,13 +203,16 @@
       the document. ``new_edits=false`` is used by the replicator to insert
       documents into the target database even if that leads to the creation
       of conflicts. *Optional*
+
     :>header Content-Type: - :mimetype:`application/json`
                            - :mimetype:`text/plain; charset=utf-8`
+                           - :mimetype:`multipart/related`
     :>header ETag: Quoted document's new revision
     :>header Location: Document URI
     :>json string id: Document ID
     :>json boolean ok: Operation status
     :>json string rev: Revision MVCC token
+
     :code 201: Document created and stored on disk
     :code 202: Document data accepted, but not yet stored on disk
     :code 400: Invalid request body or parameters

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <commits@couchdb.apache.org>.

Mime
View raw message