From 680b56b2bb98f094b93c0e80178f74f48194ac9a Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 26 Nov 2008 01:20:41 +0000 Subject: Bug 450209: Clean up WebService POD and add a History section for all functions that need one Patch By Max Kanat-Alexander r=LpSolit, a=LpSolit --- Bugzilla/WebService.pm | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) (limited to 'Bugzilla/WebService.pm') diff --git a/Bugzilla/WebService.pm b/Bugzilla/WebService.pm index d1502468d..438a66710 100755 --- a/Bugzilla/WebService.pm +++ b/Bugzilla/WebService.pm @@ -159,6 +159,87 @@ Bugzilla::WebService - The Web Service interface to Bugzilla This is the standard API for external programs that want to interact with Bugzilla. It provides various methods in various modules. +Currently the only method of accessing the API is via XML-RPC. The XML-RPC +standard is described here: L + +The endpoint for Bugzilla WebServices is the C script in +your Bugzilla installation. For example, if your Bugzilla is at +C, then your XML-RPC client would access the +API via: C + +=head1 CALLING METHODS + +Methods are called in the normal XML-RPC fashion. Bugzilla does not currently +implement any extensions to the standard method of XML-RPC method calling. + +Methods are grouped into "packages", like C for +L. So, for example, +L, is called as C in XML-RPC. + +=head1 PARAMETERS + +In addition to the standard parameter types like C, C, etc., +XML-RPC has two data structures, a C<< >> and an C<< >>. + +=head2 Structs + +In Perl, we call a C<< >> a "hash" or a "hashref". You may see +us refer to it that way in the API documentation. + +In example code, you will see the characters C<{> and C<}> used to represent +the beginning and end of structs. + +For example, here's a struct in XML-RPC: + + + + fruit + oranges + + + vegetable + lettuce + + + +In our example code in these API docs, that would look like: + + { fruit => 'oranges', vegetable => 'lettuce' } + +=head2 Arrays + +In example code, you will see the characters C<[> and C<]> used to +represent the beginning and end of arrays. + +For example, here's an array in XML-RPC: + + + + 1 + 2 + 3 + + + +In our example code in these API docs, that would look like: + + [1, 2, 3] + +=head2 How Bugzilla WebService Methods Take Parameters + +B Bugzilla WebServices functions take their parameters in +a C<< >>. Another way of saying this would be: All functions +take a single argument, a C<< >> that contains all parameters. +The names of the parameters listed in the API docs for each function are +the C element for the struct Cs. + +=head1 LOGGING IN + +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 XML-RPC client must be capable of receiving and transmitting +cookies. + =head1 STABLE, EXPERIMENTAL, and UNSTABLE Methods are marked B if you can expect their parameters and -- cgit v1.2.3-24-g4f1b