[wp-trac] [WordPress Trac] #42094: REST API: extend _fields parameter to selectively include nested fields in response JSON
WordPress Trac
noreply at wordpress.org
Thu Sep 19 14:05:02 UTC 2019
#42094: REST API: extend _fields parameter to selectively include nested fields in
response JSON
-------------------------------------------------+-------------------------
Reporter: kadamwhite | Owner: kadamwhite
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.3
Component: REST API | Version: 4.9
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing has-unit- | Focuses:
tests commit |
-------------------------------------------------+-------------------------
Changes (by kadamwhite):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"46184" 46184]:
{{{
#!CommitTicketReference repository="" revision="46184"
REST API: Support dot.nested hierarchical properties in _fields query
parameter.
Enable clients to opt-in to receipt of one or more specific sub-properties
within a response, and not other sub-properties.
Skip potentially expensive filtering and processing for post resources
which were explicitly not requested.
Props kadamwhite, TimothyBlynJacobs, dlh.
Fixes #42094.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42094#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list