diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2014-01-01 21:23:43 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2014-01-01 21:23:43 +0100 |
commit | df7f46c1ff8a9bc903e040349024d5c0c2f5be94 (patch) | |
tree | fc03f97b788358617bdf90e3109ced11489f45fe /Bugzilla/WebService/Server/REST | |
parent | cae26fc87f03b8fb44376932c06e2d3d7411a065 (diff) | |
download | bugzilla-df7f46c1ff8a9bc903e040349024d5c0c2f5be94.tar.gz bugzilla-df7f46c1ff8a9bc903e040349024d5c0c2f5be94.tar.xz |
Bug 918384 - backport upstream bug 756048 to bmo/4.2 to allow setting bug/attachment flags using the webservices
Diffstat (limited to 'Bugzilla/WebService/Server/REST')
-rw-r--r-- | Bugzilla/WebService/Server/REST/Resources/Bug.pm | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Bugzilla/WebService/Server/REST/Resources/Bug.pm b/Bugzilla/WebService/Server/REST/Resources/Bug.pm index ea420b4ed..d0f470fcd 100644 --- a/Bugzilla/WebService/Server/REST/Resources/Bug.pm +++ b/Bugzilla/WebService/Server/REST/Resources/Bug.pm @@ -151,7 +151,23 @@ sub _rest_resources { } } }, - + qr{^/flag_types/([^/]+)/([^/]+)$}, { + GET => { + method => 'flag_types', + params => sub { + return { product => $_[0], + component => $_[1] }; + } + } + }, + qr{^/flag_types/([^/]+)$}, { + GET => { + method => 'flag_types', + params => sub { + return { product => $_[0] }; + } + } + } ]; return $rest_resources; } |