Skip to content

Commit

Permalink
DOC-958: Correct bucket name in flush URI
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcarabine committed Oct 17, 2016
1 parent e4e3c4c commit f4c7f59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions content/rest-api/rest-bucket-flush.dita
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ Authorization: Basic xxxxxxxxxxxxxxxxxxx </codeblock>


<section><title>HTTP method and URI</title>
<codeblock>POST /pools/default/buckets/default/controller/doFlush</codeblock>
<codeblock>POST /pools/default/buckets/[bucket_name]/controller/doFlush</codeblock>
</section>



<section><title>Example</title>
<p>This is an example of flushing the default bucket:</p>
<p>This is an example of flushing the <codeph>default</codeph> bucket:</p>
<codeblock>curl -X POST 'http://Administrator:password@localhost:8091/pools/ \
default/buckets/default/controller/doFlush' </codeblock>

Expand All @@ -59,10 +59,10 @@ Authorization: Basic xxxxxxxxxxxxxxxxxxx </codeblock>


<section><title>Response codes</title>
<p>If the flush is successful, the HTTP response code is <codeph>200</codeph> is returned.</p>
<p>If the flush is successful, the HTTP response code <codeph>200</codeph> is returned.</p>
<codeblock>HTTP/1.1 200 OK</codeblock>

<p>If flushing is disable for the specified bucket, a 400 response code is returned with the
<p>If flushing is disabled for the specified bucket, a 400 response code is returned with the
bucket status. For example:</p>
<codeblock>{"_":"Flush is disabled for the bucket"}</codeblock>

Expand Down
5 changes: 2 additions & 3 deletions content/rest-api/rest-bucket-intro.dita
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</row>
<row>
<entry>GET</entry>
<entry><filepath>/pools/default/buckets/default</filepath></entry>
<entry><filepath>/pools/default/buckets/[bucket_name]</filepath></entry>
<entry>Retrieves information for a single bucket associated with a cluster.</entry>
<entry>Full, Cluster, Bucket*, Bucket A</entry>
</row>
Expand All @@ -58,8 +58,7 @@
</row>
<row>
<entry>POST</entry>
<entry><filepath>/pools/default/buckets/default/ \
controller/doFlush</filepath></entry>
<entry><filepath>/pools/default/buckets/[bucket_name]/controller/doFlush</filepath></entry>
<entry>Flushes a specific bucket.</entry>
<entry>Full, Cluster, Bucket*, Bucket A</entry>
</row>
Expand Down

0 comments on commit f4c7f59

Please sign in to comment.