[wp-trac] [WordPress Trac] #50409: REST API about links should be embeddable.
WordPress Trac
noreply at wordpress.org
Wed Jun 17 15:02:27 UTC 2020
#50409: REST API about links should be embeddable.
-------------------------+------------------------------
Reporter: herregroen | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: rest-api
-------------------------+------------------------------
Comment (by herregroen):
Replying to [comment:2 TimothyBlynJacobs]:
> Let's make sure this gets added to the terms `about` link as well so
we're consistent.
>
> My hesitation for this is that it would be identical information for
each and every post returned in the collection, ie it doesn't vary based
on the post object's content. If you're retrieving a single post you'd
always be able to make a request at the same time to the `types` route,
no?
Only if you're passing the `_embed` parameter every time, in which case
you may also receive other information in duplicate. And even then, only
if you're passing the `true` value to have everything embedded as opposed
to selecting specific fields you want.
My current feeling is that passing `?_embed=true` you're essentially
saying I want to know everything about this post, to which I feel the post
type information belongs.
If the intent is to limit duplicate information then the default, not
passing any `_embed` value or even passing specific `_embed` values covers
that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50409#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list