From f2b94a7f2cef6ca7d5e6d87494ed3e90426d8d2b Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Wed, 24 May 2017 08:20:41 +0200 Subject: Add v4 support to docs --- docs/api-usage.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'docs/api-usage.rst') 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 ======== -- cgit v1.2.1