[wp-trac] [WordPress Trac] #34303: Update the REST API header links

WordPress Trac noreply at wordpress.org
Mon Nov 2 03:42:32 UTC 2015


#34303: Update the REST API header links
----------------------------+-----------------------
 Reporter:  johnbillion     |       Owner:  rmccue
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  4.4
Component:  REST API        |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  dev-feedback    |     Focuses:
----------------------------+-----------------------

Comment (by dd32):

 > and http://api.w.org/ was an option. It's nice and short, and it's
 currently unused.

 Although I'm not too fond of re-using subdomains where it's potentially
 ambiguous as to what resource we're using, that sounds viable to me.
 The ambiguous issues come into play where today we shorten `wordpress.org`
 to `w.org` for resources, and I can see someone thinking `api.w.org` is
 short-hand for `api.wordpress.org`.

 > We'll need to use other stuff from this in the future too; custom
 relations are used in our links like http://v2.wp-api.org/term. I think
 http://api.w.org/v2/term would work nicely, and it's short.

 This makes me think that using the short domain is worthwhile despite the
 shortcomings, and I feel the new url format there makes sense to use.

 As a final mention, even though we're still talking about completely
 different domains..`api.wordpress.org` also matches the format of
 `api.wordpress.org/$foo/$bar/$version/` which doesn't conflict with this.

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


More information about the wp-trac mailing list