[wp-trac] [WordPress Trac] #47684: Embeddable 'self' links don't work on the REST API /search endpoint

WordPress Trac noreply at wordpress.org
Thu Jul 11 13:38:52 UTC 2019


#47684: Embeddable 'self' links don't work on the REST API /search endpoint
----------------------------+------------------------------
 Reporter:  chrisvanpatten  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  REST API        |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  rest-api
----------------------------+------------------------------

Comment (by chrisvanpatten):

 As an idea that could solve this while preserving the current behavior of
 not expanding the `self` links, I wonder if there could be an additional
 link, with a different [https://www.iana.org/assignments/link-relations
 /link-relations.xhtml relational keyword], marked as `embeddable` instead?

 There are a few that could be relevant:

 > **via**: Identifies a resource that is the source of the information in
 the link's context.

 > **related**: Identifies a related resource.

 > **original**: The Target IRI points to an Original Resource.

 > **describedby**: Refers to a resource providing information about the
 link's context.

 Not sure if any of those are viable (or if a second link is itself a
 viable option) but it could be an easy fix.

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


More information about the wp-trac mailing list