Add REST endpoint to flush a cache
Change-Id: Ic5d1ab37f5808d760e0d86b5956cce9557d0292b
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
diff --git a/Documentation/rest-api-config.txt b/Documentation/rest-api-config.txt
index b077b67..3639551 100644
--- a/Documentation/rest-api-config.txt
+++ b/Documentation/rest-api-config.txt
@@ -302,6 +302,34 @@
}
----
+[[flush-cache]]
+=== Flush Cache
+--
+'POST /config/server/caches/link:#cache-name[\{cache-name\}]/flush'
+--
+
+Flushes a cache.
+
+The caller must be a member of a group that is granted the
+link:access-control.html#capability_flushCaches[Flush Caches] capability
+or the link:access-control.html#capability_administrateServer[
+Administrate Server] capability.
+
+The "web_sessions" cache can only be flushed if the caller is member of
+a group that is granted the
+link:access-control.html#capability_administrateServer[Administrate
+Server] capability.
+
+.Request
+----
+ POST /config/server/caches/projects/flush HTTP/1.0
+----
+
+.Response
+----
+ HTTP/1.1 200 OK
+----
+
[[list-capabilities]]
=== List Capabilities
--