[wp-trac] [WordPress Trac] #41459: Introduce a REST API endpoint for networks
WordPress Trac
noreply at wordpress.org
Thu Jul 27 16:55:58 UTC 2017
#41459: Introduce a REST API endpoint for networks
--------------------------------+----------------------------
Reporter: flixos90 | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: Future Release
Component: Networks and Sites | Version:
Severity: normal | Keywords: ms-roadmap
Focuses: multisite |
--------------------------------+----------------------------
Similar to sites in #40365, there should be a networks endpoint as part of
the REST API.
Through recent multisite discussions, we have come to the conclusion that,
while multi-network should never be part of core, there should be basic
and unopinionated APIs present that can be used by whoever wants to
implement it.
A basic networks API in these terms implies that it's a simple CRUD API
for the `wp_site` database table. #29411 will introduce the internal core
functions that this endpoint will be able to use.
The endpoint should be able to do the following:
* List networks: `GET wp/v2/networks/`
* Retrieve a network: `GET wp/v2/networks/<id>`
* Create a network: `POST wp/v2/networks/`
* Update a network: `PUT wp/v2/networks/<id>`
* Delete a network: `DELETE wp/v2/networks/<id>`
Once the changes in #25344 is in place, a network meta endpoint should be
created as well. For now this will be part of this ticket too.
Note that this ticket is an early one and will lay around for a while. The
other non-network-related roadmap items have a higher priority.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41459>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list