[wp-trac] [WordPress Trac] #28093: Add REST API endpoints for widgets and sidebars
WordPress Trac
noreply at wordpress.org
Thu Nov 16 20:09:55 UTC 2017
#28093: Add REST API endpoints for widgets and sidebars
-------------------------+-----------------------------------
Reporter: westonruter | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript, rest-api
-------------------------+-----------------------------------
Comment (by wonderboymusic):
This ticket says way too much and talks about JavaScript in the same
breath as proposing REST API endpoints that don't exist yet. Do we want to
clean up the description to just focus on the endpoints? What is built
with the endpoints is irrelevant.
I wrote a woefully insufficient, read-only endpoint for Sidebars here:
https://github.com/staylor/graphql-wordpress/blob/master/packages/graphql-
wordpress-middleware/lib/REST/Controller/Sidebars.php
The data model for widgets is overdue for a spec.
Widgets on their own in a REST API seem semi-useless. Sidebars are a
mandatory requirement for building a frontend that reflects the data in
the admin.
Can we use this ticket as a spike for the endpoints? Everything else is
separate.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28093#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list