Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-21 17:49:51 +0300
committerRémy Coutable <remy@rymai.me>2017-06-27 19:59:51 +0300
commitb4d325c80c63ee9ee2676a57a42fac472b5b20d5 (patch)
tree15e4dea85ab1ae5538ffe35d0c9b0ee2dbfcaadc /doc/api/features.md
parentcc50decab5b22628eafb6636b3e57f99094c7926 (diff)
Allow the feature flags to be enabled/disabled with more granularity
This allows to enable/disable a feature flag for a given user, or a given Flipper group (must be declared statically in the `flipper.rb` initializer beforehand). Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'doc/api/features.md')
-rw-r--r--doc/api/features.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/features.md b/doc/api/features.md
index 89b8d3ac948..0ca2e637614 100644
--- a/doc/api/features.md
+++ b/doc/api/features.md
@@ -58,6 +58,8 @@ POST /features/:name
| --------- | ---- | -------- | ----------- |
| `name` | string | yes | Name of the feature to create or update |
| `value` | integer/string | yes | `true` or `false` to enable/disable, or an integer for percentage of time |
+| `flipper_group` | string | no | A Flipper group name |
+| `user` | string | no | A GitLab username |
```bash
curl --data "value=30" --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/features/new_library