summaryrefslogtreecommitdiff
path: root/lib/api/resource_label_events.rb
diff options
context:
space:
mode:
authorImre Farkas <ifarkas@gitlab.com>2018-11-08 13:18:17 +0100
committerImre Farkas <ifarkas@gitlab.com>2018-11-28 12:54:11 +0100
commitb1e070bf4957a558ac51315dd4a6277056047e8a (patch)
tree07f98719501b51e58f62762aaca80b7239d53231 /lib/api/resource_label_events.rb
parent1cd570cf77b79f37f30ef3ccd399c337056aa236 (diff)
downloadgitlab-ce-b1e070bf4957a558ac51315dd4a6277056047e8a.tar.gz
Fix API::Namespaces to accept namepaces with dotsif-52811-fix_namespaces_api_routing
It also renames the API::PROJECT_ENDPOINT_REQUIREMENTS constant to API::NAMESPACE_OR_PROJECT_REQUIREMENTS
Diffstat (limited to 'lib/api/resource_label_events.rb')
-rw-r--r--lib/api/resource_label_events.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/resource_label_events.rb b/lib/api/resource_label_events.rb
index b6fbe8c0235..0c328f7268e 100644
--- a/lib/api/resource_label_events.rb
+++ b/lib/api/resource_label_events.rb
@@ -16,7 +16,7 @@ module API
params do
requires :id, type: String, desc: "The ID of a #{parent_type}"
end
- resource parent_type.pluralize.to_sym, requirements: API::PROJECT_ENDPOINT_REQUIREMENTS do
+ resource parent_type.pluralize.to_sym, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do
desc "Get a list of #{eventable_type.to_s.downcase} resource label events" do
success Entities::ResourceLabelEvent
detail 'This feature was introduced in 11.3'