summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/api-objects.rst1
-rw-r--r--docs/gl_objects/features.rst26
2 files changed, 27 insertions, 0 deletions
diff --git a/docs/api-objects.rst b/docs/api-objects.rst
index b18c4ce..6879856 100644
--- a/docs/api-objects.rst
+++ b/docs/api-objects.rst
@@ -15,6 +15,7 @@ API examples
gl_objects/deploy_keys
gl_objects/deployments
gl_objects/environments
+ gl_objects/features
gl_objects/groups
gl_objects/issues
gl_objects/labels
diff --git a/docs/gl_objects/features.rst b/docs/gl_objects/features.rst
new file mode 100644
index 0000000..201d072
--- /dev/null
+++ b/docs/gl_objects/features.rst
@@ -0,0 +1,26 @@
+##############
+Features flags
+##############
+
+Reference
+---------
+
+* v4 API:
+
+ + :class:`gitlab.v4.objects.Feature`
+ + :class:`gitlab.v4.objects.FeatureManager`
+ + :attr:`gitlab.Gitlab.features`
+
+* GitLab API: https://docs.gitlab.com/ce/api/features.html
+
+Examples
+--------
+
+List features::
+
+ features = gl.features.list()
+
+Create or set a feature::
+
+ feature = gl.features.set(feature_name, True)
+ feature = gl.features.set(feature_name, 30)