Bugzilla::Webservice::Classification - The Classification API
This part of the Bugzilla API allows you to deal with the available Classifications. You will be able to get information about them as well as manipulate them.
See Bugzilla::WebService for a description of how parameters are passed, and what STABLE, UNSTABLE, and EXPERIMENTAL mean.
Although the data input and output is the same for JSONRPC, XMLRPC and REST, the directions for how to access the data via REST is noted in each method where applicable.
EXPERIMENTAL
Returns a hash containing information about a set of classifications.
To return information on a single classification:
GET /rest/classification/<classification_id_or_name>
The returned data format will be the same as below.
In addition to the parameters below, this method also accepts the standard include_fields and exclude_fields arguments.
You could get classifications info by supplying their names and/or ids. So, this method accepts the following parameters:
ids
An array of classification ids.
names
An array of classification names.
A hash with the key classifications
and an array of hashes as the corresponding value.
Each element of the array represents a classification that the user is authorized to see and has the following keys:
id
int
The id of the classification.
name
string
The name of the classification.
description
string
The description of the classificaion.
sort_key
int
The value which determines the order the classification is sorted.
products
An array of hashes. The array contains the products the user is authorized to access within the classification. Each hash has the following keys:
name
string
The name of the product.
id
int
The id of the product.
description
string
The description of the product.
Classification is not enabled on this installation.