summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-12-31 14:58:57 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-12-31 14:58:57 +0100
commit44e26f0615c237fa6759bc23845a96d773e0cba1 (patch)
tree5a61d53689a5785655bc0e0d66e7c35cf7b8ee7a /Bugzilla/WebService/Server
parent4fa178ae3f0f612cf91b26a2dea498602794be3b (diff)
downloadbugzilla-44e26f0615c237fa6759bc23845a96d773e0cba1.tar.gz
bugzilla-44e26f0615c237fa6759bc23845a96d773e0cba1.tar.xz
Bug 756048 - Add and update bug and attachment flags using the WebService API
r=sgreen,a=justdave
Diffstat (limited to 'Bugzilla/WebService/Server')
-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;
}