Skip to content

Commit ac51987

Browse files
committed
fixed source and target database instructions in the replication api
1 parent 5aed5cd commit ac51987

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/api/server/common.rst

+10-5
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,16 @@
484484
:<json string filter: The name of a :ref:`filter function <filterfun>`.
485485
:<json string proxy: Address of a proxy server through which replication
486486
should occur (protocol can be "http" or "socks5")
487-
:<json string source: Source database name or URL
488-
:<json string target: Target database name or URL
489-
:<json object headers: Object with header info in key value pairs.
490-
Eg: {"Authorization": "Basic Ym9iQGV4YW1wbGUuY29tOnBhc3N3b3Jk",
491-
"header_name_2": "header_value_2",...}.
487+
:<json string/object source: Source database name or URL or an object
488+
which contains the full URL of the source database with additional
489+
parameters like headers. Eg: 'source_db_name' or
490+
'http://example.com/source_db_name' or
491+
{"url":"url in here", "headers": {"header1":"value1", ...}}
492+
:<json string/object target: Target database name or URL or an object
493+
which contains the full URL of the target database with additional
494+
parameters like headers. Eg: 'target_db_name' or
495+
'http://example.com/target_db_name' or
496+
{"url":"url in here", "headers": {"header1":"value1", ...}}
492497
:>header Content-Type: - :mimetype:`application/json`
493498
- :mimetype:`text/plain; charset=utf-8`
494499
:>json array history: Replication history (see below)

0 commit comments

Comments
 (0)