You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wi...@apache.org on 2020/01/21 11:19:20 UTC

[couchdb-documentation] 01/01: Document _config/_reload endpoint

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

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

commit fb6903bbc3da0b11ba5628f666add1e25b329d41
Author: Will Holley <wi...@gmail.com>
AuthorDate: Tue Jan 21 11:18:30 2020 +0000

    Document _config/_reload endpoint
    
    Add documentation for the _node/<node>/_config/_reload endpoint.
---
 src/api/server/configuration.rst | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/src/api/server/configuration.rst b/src/api/server/configuration.rst
index 6a59ba1..9c2d61e 100644
--- a/src/api/server/configuration.rst
+++ b/src/api/server/configuration.rst
@@ -293,3 +293,37 @@ interact with the local node's configuration.
         Server: CouchDB (Erlang/OTP)
 
         "info"
+
+.. _api/config/reload:
+
+``_node/{node-name}/_config/_reload``
+=====================================
+
+.. versionadded:: 3.0
+
+.. http:post:: /_node/{node-name}/_config/_reload
+    :synopsis: Reload the configuration from disk
+
+    Reloads the configuration from disk. This has a side effect of
+    flushing any in-memory configuration changes that have not been
+    committed to disk.
+
+    **Request**:
+
+    .. code-block:: http
+
+        POST /_node/nonode@nohost/_config/_reload HTTP/1.1
+        Host: localhost:5984
+
+    **Response**:
+
+    .. code-block:: http
+
+        HTTP/1.1 200 OK
+        Cache-Control: must-revalidate
+        Content-Length: 12
+        Content-Type: application/json
+        Date: Tues, 21 Jan 2020 11:09:35
+        Server: CouchDB/3.0.0 (Erlang OTP)
+
+        {"ok":true}