[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
Sun Apr 2 19:40:39 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.8
Severity: normal | Version: 4.7
Keywords: has-patch has-unit-tests commit | Resolution: fixed
| Focuses: javascript,
| rest-api
---------------------------------------------+-----------------------------
Changes (by adamsilverstein):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"40364"]:
{{{
#!CommitTicketReference repository="" revision="40364"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39683#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list