summaryrefslogtreecommitdiff
path: root/docs/api-usage.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/api-usage.rst')
-rw-r--r--docs/api-usage.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/api-usage.rst b/docs/api-usage.rst
index 4f78df1..eae26db 100644
--- a/docs/api-usage.rst
+++ b/docs/api-usage.rst
@@ -40,6 +40,20 @@ You can also use configuration files to create ``gitlab.Gitlab`` objects:
See the :ref:`cli_configuration` section for more information about
configuration files.
+**GitLab v4 support**
+
+``python-gitlab`` uses the v3 GitLab API by default. Use the ``api_version``
+parameter to switch to v4:
+
+.. code-block:: python
+
+ import gitlab
+
+ gl = gitlab.Gitlab('http://10.0.0.1', 'JVNSESs8EwWRx5yDxM5q', api_version=4)
+
+.. warning::
+
+ The v4 support is experimental.
Managers
========