[wp-trac] [WordPress Trac] #34729: Use short CURIEs instead of full URIs

WordPress Trac noreply at wordpress.org
Tue Mar 22 00:15:51 UTC 2016


#34729: Use short CURIEs instead of full URIs
----------------------------+-----------------------
 Reporter:  rmccue          |       Owner:  joehoyle
     Type:  task (blessed)  |      Status:  closed
 Priority:  normal          |   Milestone:  4.5
Component:  REST API        |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  needs-patch     |     Focuses:
----------------------------+-----------------------
Changes (by joehoyle):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37041"]:
 {{{
 #!CommitTicketReference repository="" revision="37041"
 REST API: Provide better method for generating CURIEs

 In [36533] CURIEs were added to the API responses for the link relation
 URIs, this makes
 it a lot easier for clients to look up links by relation. That patch was
 functional, but
 broke on edge cases such as embedded responses and collection items with
 links in the items.

 This patch instead takes a less obtrusive approach by creating a new
 `get_compact_response_links`
 to compliment `get_response_links` making both old and new functionality
 available.

 Also the regex for curie relations has been relaxed to `.+` as rel names
 can have any uri-valid charector in it.

 Fixes #34729.
 }}}

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


More information about the wp-trac mailing list