summaryrefslogtreecommitdiff
path: root/lib/api/v3/environments.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/v3/environments.rb')
-rw-r--r--lib/api/v3/environments.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/environments.rb b/lib/api/v3/environments.rb
index 3056b70e6ef..6bb4e016a01 100644
--- a/lib/api/v3/environments.rb
+++ b/lib/api/v3/environments.rb
@@ -9,7 +9,7 @@ module API
params do
requires :id, type: String, desc: 'The project ID'
end
- resource :projects do
+ resource :projects, requirements: { id: %r{[^/]+} } do
desc 'Get all environments of the project' do
detail 'This feature was introduced in GitLab 8.11.'
success Entities::Environment