diff options
author | Gabriele Santomaggio <g.santomaggio@gmail.com> | 2020-12-14 15:30:15 +0100 |
---|---|---|
committer | Gabriele Santomaggio <g.santomaggio@gmail.com> | 2020-12-14 15:30:15 +0100 |
commit | c2cc4b75de75f4891401b914e2c9dcef6c4aa38e (patch) | |
tree | e6d5fcf4d372e726f1a95fad142b09a2c3cafcf4 | |
parent | 8abe0c4328a9fb3390727c7df45236371dface1c (diff) | |
download | rabbitmq-server-git-rabbitmq-managenet-2615.tar.gz |
Add documentation for the paginationrabbitmq-managenet-2615
fixes: https://github.com/rabbitmq/rabbitmq-server/issues/2615
-rw-r--r-- | deps/rabbitmq_management/priv/www/api/index.html | 86 |
1 files changed, 78 insertions, 8 deletions
diff --git a/deps/rabbitmq_management/priv/www/api/index.html b/deps/rabbitmq_management/priv/www/api/index.html index a6e4921544..cded2ef61c 100644 --- a/deps/rabbitmq_management/priv/www/api/index.html +++ b/deps/rabbitmq_management/priv/www/api/index.html @@ -309,7 +309,7 @@ vary: accept, accept-encoding, origin</pre> <td></td> <td></td> <td class="path">/api/connections</td> - <td>A list of all open connections.</td> + <td>A list of all open connections. You can filter the connections using <a href="#pagination">pagination parameters</a></td> </tr> <tr> <td>X</td> @@ -317,7 +317,7 @@ vary: accept, accept-encoding, origin</pre> <td></td> <td></td> <td class="path">/api/vhosts/<i>vhost</i>/connections</td> - <td>A list of all open connections in a specific vhost.</td> + <td>A list of all open connections in a specific vhost. You can filter the vhost connections using <a href="#pagination">pagination parameters</a></td> </tr> <tr> <td>X</td> @@ -347,7 +347,7 @@ vary: accept, accept-encoding, origin</pre> <td></td> <td></td> <td class="path">/api/channels</td> - <td>A list of all open channels.</td> + <td>A list of all open channels. You can filter the channels using <a href="#pagination">pagination parameters</a></td> </tr> <tr> <td>X</td> @@ -355,7 +355,7 @@ vary: accept, accept-encoding, origin</pre> <td></td> <td></td> <td class="path">/api/vhosts/<i>vhost</i>/channels</td> - <td>A list of all open channels in a specific vhost.</td> + <td>A list of all open channels in a specific vhost. You can filter the vhost channels using <a href="#pagination">pagination parameters</a></td> </tr> <tr> <td>X</td> @@ -387,7 +387,7 @@ vary: accept, accept-encoding, origin</pre> <td></td> <td></td> <td class="path">/api/exchanges</td> - <td>A list of all exchanges.</td> + <td>A list of all exchanges. You can filter the exchanges using <a href="#pagination">pagination parameters</a></td> </tr> <tr> <td>X</td> @@ -395,7 +395,7 @@ vary: accept, accept-encoding, origin</pre> <td></td> <td></td> <td class="path">/api/exchanges/<i>vhost</i></td> - <td>A list of all exchanges in a given virtual host.</td> + <td>A list of all exchanges in a given virtual host. You can filter the vhost exchanges using <a href="#pagination">pagination parameters</a></td> </tr> <tr> <td>X</td> @@ -466,7 +466,7 @@ vary: accept, accept-encoding, origin</pre> <td></td> <td></td> <td class="path">/api/queues</td> - <td>A list of all queues.</td> + <td>A list of all queues. You can filter the queues using <a href="#pagination">pagination parameters</a></td> </tr> <tr> <td>X</td> @@ -474,7 +474,7 @@ vary: accept, accept-encoding, origin</pre> <td></td> <td></td> <td class="path">/api/queues/<i>vhost</i></td> - <td>A list of all queues in a given virtual host.</td> + <td>A list of all queues in a given virtual host. You can filter the vhost queues using <a href="#pagination">pagination parameters</a></td> </tr> <tr> <td>X</td> @@ -2089,5 +2089,75 @@ or: </td> </tr> </table> + <section id="pagination"> + <h2> Pagination Parameters</h2> + + The pagination can be applied to: + <ul> + <li> + queues + </li> + <li> + exchanges + </li> + <li> + connections + </li> + <li> + channels + </li> + </ul> + + Parameters: + <p> + <table> + <tr> + <td><code>page</code></td> + <td> + Page number + </td> + </tr> + <tr> + <td><code>page_size</code></td> + <td> + Number of elements for page (default value: 100) + </td> + </tr> + <tr> + <td><code>name</code></td> + <td> + Filter by name, for example queue name, exchange name etc.. + </td> + </tr> + <tr> + <td><code>use_regex</code></td> + <td> + Enables regular expression for the param name + </td> + </tr> + </table> + <p> + Examples: + <table> + <tr> + <td><code>http://localhost:15672/api/queues?page=1&page_size=50</code></td> + <td> + Filter the first queues page with 50 elements + </td> + </tr> + <tr> + <td><code>http://localhost:15672/api/queues/my-vhost?page=1&page_size=100&name=&use_regex=false&pagination=true</code></td> + <td> + Filter the first queues page for the virtual host "my-vhost" + </td> + </tr> + <tr> + <td><code>http://localhost:15672/api/exchanges?page=1&page_size=100&name=%5Eamq&use_regex=true&pagination=true</code></td> + <td> + Filter the first exchanges page, 100 elements, with regular expression: "^amq" + </td> + </tr> + </table> + </section> </body> </html> |