summaryrefslogtreecommitdiff
path: root/lib/api/suggestions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/suggestions.rb')
-rw-r--r--lib/api/suggestions.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/suggestions.rb b/lib/api/suggestions.rb
index d008d1b9e97..92713b54230 100644
--- a/lib/api/suggestions.rb
+++ b/lib/api/suggestions.rb
@@ -5,13 +5,13 @@ module API
before { authenticate! }
resource :suggestions do
- desc 'Apply suggestion patch in the Merge Request it was created' do
+ desc "Apply suggestion patch in the Merge Request it was created" do
success Entities::Suggestion
end
params do
- requires :id, type: String, desc: 'The suggestion ID'
+ requires :id, type: String, desc: "The suggestion ID"
end
- put ':id/apply' do
+ put ":id/apply" do
suggestion = Suggestion.find_by_id(params[:id])
not_found! unless suggestion