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
path: root/lib/api
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-04-04 16:13:44 +0300
committerDouwe Maan <douwe@gitlab.com>2018-04-04 16:13:44 +0300
commite43c01e6b818a807abef110ec485f92cae396632 (patch)
tree9154251d512c08e73b076a5c600fc625f1906a42 /lib/api
parenteaed588bf228c833cb666a61bc7d25cf21d5f94b (diff)
parentcaca8f34ffb56aed98a7894c98af6c4d1a5de78f (diff)
Merge branch 'zj-feature-gate-remove-http-api' into 'master'
Allow feature gate removal through the API See merge request gitlab-org/gitlab-ce!18146
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/features.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/api/features.rb b/lib/api/features.rb
index 9385c6ca174..11d848584d9 100644
--- a/lib/api/features.rb
+++ b/lib/api/features.rb
@@ -65,6 +65,13 @@ module API
present feature, with: Entities::Feature, current_user: current_user
end
+
+ desc 'Remove the gate value for the given feature'
+ delete ':name' do
+ Feature.get(params[:name]).remove
+
+ status 204
+ end
end
end
end