diff options
author | Simon Green <sgreen@redhat.com> | 2013-09-13 01:39:43 +0200 |
---|---|---|
committer | Simon Green <sgreen@redhat.com> | 2013-09-13 01:39:43 +0200 |
commit | 4a8ab2afa9c10f473812f7aaf60582ba2629bcda (patch) | |
tree | 6649dbba32e8b975abca7922e6d6b72eaa35c2f2 /Bugzilla/WebService/Server | |
parent | 0ced6fe053d60471c8b768c95e45e640c32ce251 (diff) | |
download | bugzilla-4a8ab2afa9c10f473812f7aaf60582ba2629bcda.tar.gz bugzilla-4a8ab2afa9c10f473812f7aaf60582ba2629bcda.tar.xz |
Bug 914986 - Create Bug.update_attachment to update attachments via RPC/REST
r=dkl, a=sgreen
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$}, { |