You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fl...@apache.org on 2019/07/06 11:43:53 UTC

[couchdb-documentation] 01/03: Update replication docs to use fully qualified URLs

This is an automated email from the ASF dual-hosted git repository.

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

commit 601f599d8c59ee7be6ea316a56b6ac2119b34489
Author: Jonathan Hall <fl...@flimzy.com>
AuthorDate: Sat Jul 6 13:14:41 2019 +0200

    Update replication docs to use fully qualified URLs
---
 src/api/server/common.rst | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/src/api/server/common.rst b/src/api/server/common.rst
index 69341e6..033cc1d 100644
--- a/src/api/server/common.rst
+++ b/src/api/server/common.rst
@@ -608,15 +608,13 @@
     :<json string filter: The name of a :ref:`filter function <filterfun>`.
     :<json string proxy: Address of a proxy server through which replication
       should occur (protocol can be "http" or "socks5")
-    :<json string/object source: Source database name or URL or an object
-      which contains the full URL of the source database with additional
-      parameters like headers. Eg: 'source_db_name' or
-      'http://example.com/source_db_name' or
+    :<json string/object source: Fully qualified source database URL or an
+      object which contains the full URL of the source database with additional
+      parameters like headers. Eg: 'http://example.com/source_db_name' or
       {"url":"url in here", "headers": {"header1":"value1", ...}}
-    :<json string/object target: Target database name or URL or an object
-      which contains the full URL of the target database with additional
-      parameters like headers. Eg: 'target_db_name' or
-      'http://example.com/target_db_name' or
+    :<json string/object target: Fully qualified target database URL or an
+      object which contains the full URL of the target database with additional
+      parameters like headers. Eg: 'http://example.com/target_db_name' or
       {"url":"url in here", "headers": {"header1":"value1", ...}}
     :>header Content-Type: - :mimetype:`application/json`
                            - :mimetype:`text/plain; charset=utf-8`
@@ -660,13 +658,13 @@
 
         POST /_replicate HTTP/1.1
         Accept: application/json
-        Content-Length: 36
+        Content-Length: 80
         Content-Type: application/json
         Host: localhost:5984
 
         {
-            "source": "db_a",
-            "target": "db_b"
+            "source": "http://127.0.0.1:5984/db_a",
+            "target": "http://127.0.0.1:5984/db_b"
         }
 
     **Response**