From 384d1d254d14bafc3fdf62a08668c6cb36249563 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Fri, 12 Jul 2013 16:39:50 -0400 Subject: Bug 866927 - Enhance Bugzilla WebServices to allow data access using REST r=glob,a=justdave --- Bugzilla/WebService.pm | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'Bugzilla/WebService.pm') diff --git a/Bugzilla/WebService.pm b/Bugzilla/WebService.pm index 5b2825375..03548d257 100644 --- a/Bugzilla/WebService.pm +++ b/Bugzilla/WebService.pm @@ -45,15 +45,20 @@ This is the standard API for external programs that want to interact with Bugzilla. It provides various methods in various modules. You can interact with this API via -L or -L. +L, +L or +L. =head1 CALLING METHODS -Methods are grouped into "packages", like C for +Methods are grouped into "packages", like C for L. So, for example, L, is called as C. +For REST, the "package" is more determined by the path +used to access the resource. See each relevant method +for specific details on how to access via REST. + =head1 PARAMETERS The Bugzilla API takes the following various types of parameters: @@ -135,7 +140,7 @@ There are various ways to log in: =item C -You can use L to log in as a Bugzilla +You can use L to log in as a Bugzilla user. This issues standard HTTP cookies that you must then use in future calls, so your client must be capable of receiving and transmitting cookies. @@ -165,13 +170,17 @@ not expire. =back The C and C options -are only used when you have also specified C and +are only used when you have also specified C and C. Note that Bugzilla will return HTTP cookies along with the method response when you use these arguments (just like the C method above). +For REST, you may also use the C and C variable +names instead of C and C as a +convenience. + =back =head1 STABLE, EXPERIMENTAL, and UNSTABLE @@ -266,6 +275,9 @@ would return something like: { users => [{ id => 1, name => 'user@domain.com' }] } +Note for REST, C may instead be a comma delimited string +for GET type requests. + =item C C An array of strings, representing the (case-sensitive) names of @@ -295,6 +307,9 @@ would return something like: { users => [{ id => 1, real_name => 'John Smith' }] } +Note for REST, C may instead be a comma delimited string +for GET type requests. + =back =head1 SEE ALSO -- cgit v1.2.3-24-g4f1b