From cd2f1c38499004485e3a817e8835b2a0ed9266fd Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Mon, 15 Jul 2013 16:29:01 -0400 Subject: Bug 892601 - Port over upstream native REST patch (bug 866927) to bmo/4.2 r=glob --- 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 55df8124d..8f97a3a2f 100644 --- a/Bugzilla/WebService.pm +++ b/Bugzilla/WebService.pm @@ -52,15 +52,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: @@ -142,7 +147,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. @@ -172,13 +177,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 @@ -273,6 +282,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 @@ -302,6 +314,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