From 44e26f0615c237fa6759bc23845a96d773e0cba1 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Tue, 31 Dec 2013 08:58:57 -0500 Subject: Bug 756048 - Add and update bug and attachment flags using the WebService API r=sgreen,a=justdave --- Bugzilla/WebService/Server/REST/Resources/Bug.pm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'Bugzilla/WebService/Server/REST/Resources') 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; } -- cgit v1.2.1