diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-09-27 00:15:10 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-09-27 00:15:10 +0200 |
commit | f9defcea6e1ee83189674a355bda8bcf621feebe (patch) | |
tree | d60f44474c31d7a2705d8076a05e3c77f889939a /Bugzilla/WebService/Server | |
parent | e18e70eb6db4500a7afbb84b393df33a9e23b016 (diff) | |
download | bugzilla-f9defcea6e1ee83189674a355bda8bcf621feebe.tar.gz bugzilla-f9defcea6e1ee83189674a355bda8bcf621feebe.tar.xz |
Bug 915685 - backport upstream bug 914986 and bug 917483 to bmo/4.2 for allowing attachment metadata editing in webservice API
Diffstat (limited to 'Bugzilla/WebService/Server')
-rw-r--r-- | Bugzilla/WebService/Server/REST/Resources/Bug.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server/REST/Resources/Bug.pm b/Bugzilla/WebService/Server/REST/Resources/Bug.pm index a82625be7..98ae6049c 100644 --- a/Bugzilla/WebService/Server/REST/Resources/Bug.pm +++ b/Bugzilla/WebService/Server/REST/Resources/Bug.pm @@ -94,6 +94,12 @@ sub _rest_resources { params => sub { return { attachment_ids => [ $_[0] ] }; } + }, + PUT => { + method => 'update_attachment', + params => sub { + return { ids => [ $_[0] ] }; + } } }, qr{^/field/bug$}, { |