Commit 0f1ca8b3 authored by Robert Speicher's avatar Robert Speicher

Remove DELETE API for Milestones

parent b0a901fe
...@@ -76,18 +76,6 @@ module Gitlab ...@@ -76,18 +76,6 @@ module Gitlab
error!({'message' => '404 Not found'}, 404) error!({'message' => '404 Not found'}, 404)
end end
end end
# Delete a project milestone
#
# Parameters:
# id (required) - The ID or code name of a project
# milestone_id (required) - The ID of a project milestone
# Example Request:
# DELETE /projects/:id/milestones/:milestone_id
delete ":id/milestones/:milestone_id" do
@milestone = user_project.milestones.find(params[:milestone_id])
@milestone.destroy
end
end end
end end
end end
...@@ -42,12 +42,4 @@ describe Gitlab::API do ...@@ -42,12 +42,4 @@ describe Gitlab::API do
json_response['title'].should == 'updated title' json_response['title'].should == 'updated title'
end end
end end
describe "DELETE /projects/:id/milestones/:milestone_id" do
it "should delete a project milestone" do
expect {
delete "#{api_prefix}/projects/#{project.code}/milestones/#{milestone.id}?private_token=#{user.private_token}"
}.to change { Milestone.count }.by(-1)
end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment