[wp-trac] [WordPress Trac] #50409: REST API about links should be embeddable.

WordPress Trac noreply at wordpress.org
Tue Aug 11 14:01:16 UTC 2020


#50409: REST API about links should be embeddable.
-------------------------+-----------------------
 Reporter:  herregroen   |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  5.6
Component:  REST API     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  rest-api
-------------------------+-----------------------

Comment (by luisherranz):

 I think that if the duplication of embedded resources were not an issue,
 there won't be any doubt that the `type` information belongs to the
 "related resources" of a post. For that reason, I think it shouldn't be
 treated differently just because of the high duplication ratio.

 On the other hand, I think the REST API should provide a general solution
 to avoid duplication of embedded resources because it will benefit many
 other cases, not just this one. There are a lot of resources that also
 have high duplication ratios, like authors or common tags and categories.

 Maybe a solution for that could be to expose a top `_embedded` field when
 combining the `_embed` and `_envelope` queries, where the embedded
 resources would be properly normalized. But I guess this is probably not
 the place to discuss this :)

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


More information about the wp-trac mailing list