diff options
author | David Lawrence <dkl@mozilla.com> | 2014-04-28 16:19:54 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-04-28 16:19:54 +0200 |
commit | 96ff287433595d8fed8791af1ed0f6e382b3f4a9 (patch) | |
tree | 241ae7bb6b46f188821fb9b9beb549e2a377394e /Bugzilla/WebService.pm | |
parent | 40d80bae28d53965a0abc38ca465c8c986ad0aa3 (diff) | |
download | bugzilla-96ff287433595d8fed8791af1ed0f6e382b3f4a9.tar.gz bugzilla-96ff287433595d8fed8791af1ed0f6e382b3f4a9.tar.xz |
Bug 1000913 - Backport upstream bug 540818 to bmo/4.2 to improve include_fields and exclude_fields to accept _default, _all and _custom keywords
r=glob
Diffstat (limited to 'Bugzilla/WebService.pm')
-rw-r--r-- | Bugzilla/WebService.pm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Bugzilla/WebService.pm b/Bugzilla/WebService.pm index 60642c5e8..86fbe1fe3 100644 --- a/Bugzilla/WebService.pm +++ b/Bugzilla/WebService.pm @@ -334,6 +334,34 @@ for GET type requests. =back +There are several shortcut identifiers to ask for only certain groups of +fields to be returned or excluded. + +=over + +=item C<_all> + +All possible fields are returned if C<_all> is specified in C<include_fields>. + +=item C<_default> + +These fields are returned if C<include_fields> is empty or C<_default> +is specified. All fields described in the documentation are returned +by default unless specified otherwise. + +=item C<_extra> + +These fields are not returned by default and need to be manually specified +in C<include_fields> either by field name, or using C<_extra>. + +=item C<_custom> + +Only custom fields are returned if C<_custom> is specified in C<include_fields>. +This is normally specific to bug objects and not relevant for other returned +objects. + +=back + =head1 SEE ALSO =head2 Server Types |