diff options
author | Max Wittig <max.wittig95@gmail.com> | 2020-01-26 17:33:53 +0100 |
---|---|---|
committer | Max Wittig <max.wittig95@gmail.com> | 2020-01-26 17:35:18 +0100 |
commit | d1879253dae93e182710fe22b0a6452296e2b532 (patch) | |
tree | 70a2f9eb46f50fd59a55118708d1e34d660333b7 /docs/api-usage.rst | |
parent | 0b71ba4d2965658389b705c1bb0d83d1ff2ee8f2 (diff) | |
download | gitlab-feat/keyset-pagination.tar.gz |
feat: add global order_by option to ease paginationfeat/keyset-pagination
Diffstat (limited to 'docs/api-usage.rst')
-rw-r--r-- | docs/api-usage.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api-usage.rst b/docs/api-usage.rst index 5b1bd93..19fdea0 100644 --- a/docs/api-usage.rst +++ b/docs/api-usage.rst @@ -225,8 +225,8 @@ order options. At the time of writing, only ``order_by="id"`` works. .. code-block:: python - gl = gitlab.Gitlab(url, token, pagination="keyset", per_page=100) - gl.projects.list(order_by="id") + gl = gitlab.Gitlab(url, token, pagination="keyset", order_by="id", per_page=100) + gl.projects.list() Reference: https://docs.gitlab.com/ce/api/README.html#keyset-based-pagination |