summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-01-01 15:30:24 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2018-01-01 15:30:24 +0100
commitf5850d950a77b1d985fdc3d1639e2627468d3548 (patch)
tree908316276b55d8897ff0dcb6c30315bc6efa731d /docs
parentc281d95c2f978d8d2eb1d77352babf5217d32062 (diff)
downloadgitlab-f5850d950a77b1d985fdc3d1639e2627468d3548.tar.gz
Add support for features flags
Fixes #360
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)