Add executable examples for GET requests to REST API documentation
Add examples for GET requests to the REST API documentation on which
the user can click to fire the requests. This allows users to
immediately try out the requests and play around with them.
Change-Id: If135a5e5dc53c07bc2d55a4ad82b65e251f76a8b
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
diff --git a/Documentation/rest-api-accounts.txt b/Documentation/rest-api-accounts.txt
index 4b60212..a423e85 100644
--- a/Documentation/rest-api-accounts.txt
+++ b/Documentation/rest-api-accounts.txt
@@ -52,6 +52,11 @@
}
----
+.Get your own capabilities
+****
+get::/accounts/self/capabilities
+****
+
To filter the set of global capabilities the `q` parameter can be used.
Filtering may decrease the response time by avoiding looking at every
possible alternative for the caller.
@@ -71,6 +76,11 @@
is `true`. link:json.html#queryLimit[`queryLimit`] is a range and is
presented as a nested JSON object with `min` and `max` members.
+.Check if you can create groups
+****
+get::/accounts/self/capabilities?q=createGroup
+****
+
GERRIT
------