Deprecate the DELETE method for Issues API
Now returns HTTP Status 405 - http://httpstatus.es/405 Closes #1245 Closes #1264
This commit is contained in:
parent
0f1ca8b3e7
commit
b838440f15
2 changed files with 4 additions and 6 deletions
|
@ -95,7 +95,7 @@ module Gitlab
|
|||
end
|
||||
end
|
||||
|
||||
# Delete a project issue
|
||||
# Delete a project issue (deprecated)
|
||||
#
|
||||
# Parameters:
|
||||
# id (required) - The ID or code name of a project
|
||||
|
@ -103,8 +103,7 @@ module Gitlab
|
|||
# Example Request:
|
||||
# DELETE /projects/:id/issues/:issue_id
|
||||
delete ":id/issues/:issue_id" do
|
||||
@issue = user_project.issues.find(params[:issue_id])
|
||||
@issue.destroy
|
||||
error!({'message' => 'method not allowed'}, 405)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue