From 66d374b1289e6dd33008dc931e9fb642051724d0 Mon Sep 17 00:00:00 2001 From: Cédric Couralet Date: Mon, 30 Jul 2018 13:47:09 +0000 Subject: Add possibility to choose between version v3 or v4 for the gitlab api. Apart from the uri versioning, one big change is the snippet visibility post data (visibility_level -> visibility) Default gitlab api version to v4 Signed-off-by: Cédric Couralet --- config.json.example | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.json.example') diff --git a/config.json.example b/config.json.example index 1f2ec3d5..16c95509 100644 --- a/config.json.example +++ b/config.json.example @@ -55,7 +55,8 @@ "baseURL": "change this", "clientID": "change this", "clientSecret": "change this", - "scope": "use 'read_user' scope for auth user only or remove this property if you need gitlab snippet import/export support (will result to be default scope 'api')" + "scope": "use 'read_user' scope for auth user only or remove this property if you need gitlab snippet import/export support (will result to be default scope 'api')", + "version": "use 'v4' if gitlab version > 11, 'v3' otherwise. Default to 'v4'" }, "mattermost": { "baseURL": "change this", -- cgit v1.2.3