summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2014-01-01 21:23:43 +0100
committerDave Lawrence <dlawrence@mozilla.com>2014-01-01 21:23:43 +0100
commitdf7f46c1ff8a9bc903e040349024d5c0c2f5be94 (patch)
treefc03f97b788358617bdf90e3109ced11489f45fe /Bugzilla/WebService/Server
parentcae26fc87f03b8fb44376932c06e2d3d7411a065 (diff)
downloadbugzilla-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')
-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;
}