summaryrefslogtreecommitdiff
path: root/lib/api/v3/deployments.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/v3/deployments.rb')
-rw-r--r--lib/api/v3/deployments.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/api/v3/deployments.rb b/lib/api/v3/deployments.rb
index c5feb49b22f..545485fac0a 100644
--- a/lib/api/v3/deployments.rb
+++ b/lib/api/v3/deployments.rb
@@ -11,7 +11,7 @@ module API
resource :projects do
desc 'Get all deployments of the project' do
detail 'This feature was introduced in GitLab 8.11.'
- success Entities::Deployment
+ success ::API::V3::Deployments
end
params do
use :pagination
@@ -19,12 +19,12 @@ module API
get ':id/deployments' do
authorize! :read_deployment, user_project
- present paginate(user_project.deployments), with: Entities::Deployment
+ present paginate(user_project.deployments), with: ::API::V3::Deployments
end
desc 'Gets a specific deployment' do
detail 'This feature was introduced in GitLab 8.11.'
- success Entities::Deployment
+ success ::API::V3::Deployments
end
params do
requires :deployment_id, type: Integer, desc: 'The deployment ID'
@@ -34,7 +34,7 @@ module API
deployment = user_project.deployments.find(params[:deployment_id])
- present deployment, with: Entities::Deployment
+ present deployment, with: ::API::V3::Deployments
end
end
end