summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService.pm
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-04-11 16:58:03 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-04-11 16:58:03 +0200
commit32931bb0370328c142e9d63f410d94f9db3c764d (patch)
treee84689678890ebbefc4cda99e448820f0d352d73 /Bugzilla/WebService.pm
parentad9b149541d21e6e4e782da9785ba5fd16e9ccc7 (diff)
downloadbugzilla-32931bb0370328c142e9d63f410d94f9db3c764d.tar.gz
bugzilla-32931bb0370328c142e9d63f410d94f9db3c764d.tar.xz
Bug 540818 - Improve include_fields and exclude_fields to accept _default, _all and _custom keywords
r=glob,a=justdave
Diffstat (limited to 'Bugzilla/WebService.pm')
-rw-r--r--Bugzilla/WebService.pm28
1 files changed, 28 insertions, 0 deletions
diff --git a/Bugzilla/WebService.pm b/Bugzilla/WebService.pm
index 92ffed659..9638d1132 100644
--- a/Bugzilla/WebService.pm
+++ b/Bugzilla/WebService.pm
@@ -319,6 +319,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