From f4c7f5945dd1aa763390db9ee7d923aa69ff4487 Mon Sep 17 00:00:00 2001 From: mattcarabine Date: Mon, 17 Oct 2016 13:36:37 +0100 Subject: [PATCH] DOC-958: Correct bucket name in flush URI --- content/rest-api/rest-bucket-flush.dita | 8 ++++---- content/rest-api/rest-bucket-intro.dita | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/content/rest-api/rest-bucket-flush.dita b/content/rest-api/rest-bucket-flush.dita index 77bfd38e97..870d2ad43a 100644 --- a/content/rest-api/rest-bucket-flush.dita +++ b/content/rest-api/rest-bucket-flush.dita @@ -41,13 +41,13 @@ Authorization: Basic xxxxxxxxxxxxxxxxxxx
HTTP method and URI - POST /pools/default/buckets/default/controller/doFlush + POST /pools/default/buckets/[bucket_name]/controller/doFlush
Example -

This is an example of flushing the default bucket:

+

This is an example of flushing the default bucket:

curl -X POST 'http://Administrator:password@localhost:8091/pools/ \ default/buckets/default/controller/doFlush' @@ -59,10 +59,10 @@ Authorization: Basic xxxxxxxxxxxxxxxxxxx
Response codes -

If the flush is successful, the HTTP response code is 200 is returned.

+

If the flush is successful, the HTTP response code 200 is returned.

HTTP/1.1 200 OK -

If flushing is disable for the specified bucket, a 400 response code is returned with the +

If flushing is disabled for the specified bucket, a 400 response code is returned with the bucket status. For example:

{"_":"Flush is disabled for the bucket"} diff --git a/content/rest-api/rest-bucket-intro.dita b/content/rest-api/rest-bucket-intro.dita index d863825ac9..88b6e462ba 100644 --- a/content/rest-api/rest-bucket-intro.dita +++ b/content/rest-api/rest-bucket-intro.dita @@ -34,7 +34,7 @@ GET - /pools/default/buckets/default + /pools/default/buckets/[bucket_name] Retrieves information for a single bucket associated with a cluster. Full, Cluster, Bucket*, Bucket A @@ -58,8 +58,7 @@ POST - /pools/default/buckets/default/ \ - controller/doFlush + /pools/default/buckets/[bucket_name]/controller/doFlush Flushes a specific bucket. Full, Cluster, Bucket*, Bucket A