[wp-trac] [WordPress Trac] #39683: REST API JS Client: Should enable connecting to multiple endpoints at the same time
WordPress Trac
noreply at wordpress.org
Tue May 16 16:34:24 UTC 2017
#39683: REST API JS Client: Should enable connecting to multiple endpoints at the
same time
---------------------------------------------+-----------------------------
Reporter: adamsilverstein | Owner:
Type: defect (bug) | adamsilverstein
Priority: normal | Status: closed
Component: REST API | Milestone: 4.7.5
Severity: normal | Version: 4.7
Keywords: has-patch has-unit-tests commit | Resolution: fixed
| Focuses: javascript,
| rest-api
---------------------------------------------+-----------------------------
Changes (by swissspidy):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"40735"]:
{{{
#!CommitTicketReference repository="" revision="40735"
REST API: JS Client - Enable connecting to multiple endpoints.
Enable connecting to multiple wp-api `endpoints`. Calling `wp.api.init`
with a new `apiRoot` will parse the new endpoint's schema and store a new
set of models and collections. A collection of
connected endpoints is stored in `wp.api.endpoints`.
Props lucasstark.
Fixes #39683.
Merges [40364] to the 4.7 branch.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39683#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list