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
Actions