diff options
Diffstat (limited to 'lib/api/project_hooks.rb')
-rw-r--r-- | lib/api/project_hooks.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/api/project_hooks.rb b/lib/api/project_hooks.rb index 0e7576c9243..e4a0a8b90bd 100644 --- a/lib/api/project_hooks.rb +++ b/lib/api/project_hooks.rb @@ -27,10 +27,10 @@ module API end params do - requires :id, type: String, desc: 'The ID of a project' + requires :id, type: String, desc: "The ID of a project" end resource :projects, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do - desc 'Get project hooks' do + desc "Get project hooks" do success Entities::ProjectHook end params do @@ -40,18 +40,18 @@ module API present paginate(user_project.hooks), with: Entities::ProjectHook end - desc 'Get a project hook' do + desc "Get a project hook" do success Entities::ProjectHook end params do - requires :hook_id, type: Integer, desc: 'The ID of a project hook' + requires :hook_id, type: Integer, desc: "The ID of a project hook" end get ":id/hooks/:hook_id" do hook = user_project.hooks.find(params[:hook_id]) present hook, with: Entities::ProjectHook end - desc 'Add hook to project' do + desc "Add hook to project" do success Entities::ProjectHook end params do @@ -72,7 +72,7 @@ module API end end - desc 'Update an existing project hook' do + desc "Update an existing project hook" do success Entities::ProjectHook end params do @@ -94,11 +94,11 @@ module API end end - desc 'Deletes project hook' do + desc "Deletes project hook" do success Entities::ProjectHook end params do - requires :hook_id, type: Integer, desc: 'The ID of the hook to delete' + requires :hook_id, type: Integer, desc: "The ID of the hook to delete" end delete ":id/hooks/:hook_id" do hook = user_project.hooks.find(params.delete(:hook_id)) |