[wp-trac] [WordPress Trac] #64034: Media / Attachments REST API endpoint: Include post (i.e. attached parent) as an embeddable link in the response

WordPress Trac noreply at wordpress.org
Mon Oct 6 22:15:04 UTC 2025


#64034: Media / Attachments REST API endpoint: Include post (i.e. attached parent)
as an embeddable link in the response
--------------------------------------+---------------------------
 Reporter:  andrewserong              |       Owner:  andrewserong
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  6.9
Component:  REST API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------------

Comment (by andrewserong):

 @TimothyBlynJacobs I went with `post` because it's already part of the API
 schema for this endpoint (`post` — The ID for the associated post of the
 attachment) so that the link matches (or is connected to) the key within
 each response object.

 I notice with a couple of the other `api.w.org` prefixes used elsewhere
 we're also using nouns (e.g. https://api.w.org/term and
 https://api.w.org/attachment) so this feels a bit more consistent to me
 than `featuredin`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64034#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list