diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2018-01-16 01:03:43 +0300 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2018-01-16 15:11:59 +0300 |
commit | fa84b98796bb63eea42a8685e4a129433efd353f (patch) | |
tree | 9b016eec08dd8120f1106055a3f183dd66ebac52 /lib | |
parent | be353219d1eec05a7b04e9c2e94f61573889549d (diff) |
Enables Project Milestone Deletion via API
Enables project milestone deletion via DELETE /projects/:id/milestones/:milestone_id
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/project_milestones.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/api/project_milestones.rb b/lib/api/project_milestones.rb index 0cb209a02d0..306dc0e63d7 100644 --- a/lib/api/project_milestones.rb +++ b/lib/api/project_milestones.rb @@ -60,6 +60,15 @@ module API update_milestone_for(user_project) end + desc 'Remove a project milestone' + delete ":id/milestones/:milestone_id" do + authorize! :admin_milestone, user_project + + user_project.milestones.find(params[:milestone_id]).destroy + + status(204) + end + desc 'Get all issues for a single project milestone' do success Entities::IssueBasic end |