couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fli...@apache.org
Subject [couchdb-documentation] 01/03: Update replication docs to use fully qualified URLs
Date Sat, 06 Jul 2019 11:43:53 GMT
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 <flimzy@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**


Mime
View raw message