summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server/REST
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2014-06-19 00:51:04 +0200
committerSimon Green <sgreen@redhat.com>2014-06-19 00:51:04 +0200
commit0898458132400dce4d9033487b1bde120762327e (patch)
tree11f148df11cec550a5a3f57c105dfe692eaa90f9 /Bugzilla/WebService/Server/REST
parentd596739c558b305e07dc9d885fcca3a103bfbd67 (diff)
downloadbugzilla-0898458132400dce4d9033487b1bde120762327e.tar.gz
bugzilla-0898458132400dce4d9033487b1bde120762327e.tar.xz
Bug 1023725 - Rename Bug.flag_types webservice call to FlagType.get
r=glob, a=glob
Diffstat (limited to 'Bugzilla/WebService/Server/REST')
-rw-r--r--Bugzilla/WebService/Server/REST/Resources/Bug.pm17
-rw-r--r--Bugzilla/WebService/Server/REST/Resources/FlagType.pm19
2 files changed, 17 insertions, 19 deletions
diff --git a/Bugzilla/WebService/Server/REST/Resources/Bug.pm b/Bugzilla/WebService/Server/REST/Resources/Bug.pm
index d0f470fcd..7ab111d86 100644
--- a/Bugzilla/WebService/Server/REST/Resources/Bug.pm
+++ b/Bugzilla/WebService/Server/REST/Resources/Bug.pm
@@ -151,23 +151,6 @@ 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;
}
diff --git a/Bugzilla/WebService/Server/REST/Resources/FlagType.pm b/Bugzilla/WebService/Server/REST/Resources/FlagType.pm
index 745785838..1de5b1264 100644
--- a/Bugzilla/WebService/Server/REST/Resources/FlagType.pm
+++ b/Bugzilla/WebService/Server/REST/Resources/FlagType.pm
@@ -21,13 +21,28 @@ BEGIN {
sub _rest_resources {
my $rest_resources = [
- qr{^/flagtype$}, {
+ qr{^/flag_type$}, {
POST => {
method => 'create',
success_code => STATUS_CREATED
}
},
- qr{^/flagtype/([^/]+)$}, {
+ qr{^/flag_type/([^/]+)/([^/]+)$}, {
+ GET => {
+ method => 'get',
+ params => sub {
+ return { product => $_[0],
+ component => $_[1] };
+ }
+ }
+ },
+ qr{^/flag_type/([^/]+)$}, {
+ GET => {
+ method => 'get',
+ params => sub {
+ return { product => $_[0] };
+ }
+ },
PUT => {
method => 'update',
params => sub {