From 6d49b7c4383e61ccf1129fcd01b5a52f9fff7183 Mon Sep 17 00:00:00 2001 From: hrchu Date: Tue, 21 Mar 2017 09:44:17 +0800 Subject: [PATCH] doc: correct and improve add user capability section - "user-caps" should be located in the request parameter instead of body in example - Indicate how to add multiple admin capbabilies Signed-off-by: Chu, Hua-Rong --- doc/radosgw/adminops.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/radosgw/adminops.rst b/doc/radosgw/adminops.rst index d747f878aee..2c3a6bc8186 100644 --- a/doc/radosgw/adminops.rst +++ b/doc/radosgw/adminops.rst @@ -1696,7 +1696,7 @@ Request Parameters :Description: The administrative capability to add to the user. :Type: String -:Example: ``usage=read, write`` +:Example: ``usage=read,write;user=write`` :Required: Yes Response Entities @@ -1736,12 +1736,11 @@ Example Request :: - PUT /{admin}/user?caps&format=json HTTP/1.1 + PUT /{admin}/user?caps&user-caps=usage=read,write;user=write&format=json HTTP/1.1 Host: {fqdn} Content-Type: text/plain Authorization: {your-authorization-token} - usage=read Remove A User Capability