Actions
Patch #14828
closedPatch to add support for deleting attachments via API
Start date:
Due date:
% Done:
0%
Estimated time:
Description
A patch to add support for deleting attachments via the REST API:
app/controllers/attachments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 5a816a7..31fcb8a 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -21,7 +21,7 @@ class AttachmentsController < ApplicationController before_filter :delete_authorize, :only => :destroy before_filter :authorize_global, :only => :upload - accept_api_auth :show, :download, :upload + accept_api_auth :show, :download, :upload, :destroy def show respond_to do |format|
Usage:
DELETE /attachments/[id].[format]
// Michael Medin
Files
Related issues
Updated by Go MAEDA over 8 years ago
- Related to Feature #17879: support deleting attachments added
Updated by Go MAEDA over 8 years ago
- Has duplicate Patch #22308: delete attachments over REST API added
Updated by Go MAEDA over 8 years ago
- Target version set to Candidate for next major release
Updated by Go MAEDA over 8 years ago
- File patch.diff patch.diff added
Here is an updated patch by Oliver Luethi (#22308) : patch.diff
Updated by Takenori TAKAKI over 8 years ago
- File add_support_for_deleting_attachments_via_api_trunk_r15327.patch add_support_for_deleting_attachments_via_api_trunk_r15327.patch added
I have updated the patch as below:
- Compatible with latest trunk (r15327)
- Added test-codes
I would be very happy if I could see the feature in Redmine 3.3.0.
Updated by Jean-Philippe Lang over 8 years ago
- Target version changed from Candidate for next major release to 3.3.0
Updated by Jean-Philippe Lang over 8 years ago
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
Committed, thanks.
Actions