aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server/REST/Resources
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-12-31 08:58:57 -0500
committerDave Lawrence <dlawrence@mozilla.com>2013-12-31 08:58:57 -0500
commit44e26f0615c237fa6759bc23845a96d773e0cba1 (patch)
tree5a61d53689a5785655bc0e0d66e7c35cf7b8ee7a /Bugzilla/WebService/Server/REST/Resources
parent4fa178ae3f0f612cf91b26a2dea498602794be3b (diff)
downloadbugs-44e26f0615c237fa6759bc23845a96d773e0cba1.tar
bugs-44e26f0615c237fa6759bc23845a96d773e0cba1.tar.gz
bugs-44e26f0615c237fa6759bc23845a96d773e0cba1.tar.bz2
bugs-44e26f0615c237fa6759bc23845a96d773e0cba1.tar.xz
bugs-44e26f0615c237fa6759bc23845a96d773e0cba1.zip
Bug 756048 - Add and update bug and attachment flags using the WebService API
r=sgreen,a=justdave
Diffstat (limited to 'Bugzilla/WebService/Server/REST/Resources')
-rw-r--r--Bugzilla/WebService/Server/REST/Resources/Bug.pm18
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;
}