[wp-trac] [WordPress Trac] #38342: Quick Draft: Leverage REST API endpoints

WordPress Trac noreply at wordpress.org
Wed Oct 19 21:53:22 UTC 2016


#38342: Quick Draft: Leverage REST API endpoints
----------------------------------+------------------------------
 Reporter:  adamsilverstein       |       Owner:
     Type:  enhancement           |      Status:  new
 Priority:  normal                |   Milestone:  Awaiting Review
Component:  Administration        |     Version:
 Severity:  normal                |  Resolution:
 Keywords:  needs-patch REST-API  |     Focuses:  javascript
----------------------------------+------------------------------

Comment (by aduth):

 >If the REST API content endpoints were in core, how would we rebuild core
 features (like Quick Draft) to use it?

 After chatting with @adamsilverstein , my take on this was to do a more
 thorough overhaul of the existing Quick Drafts, leveraging the
 [https://github.com/WP-API/WP-API/blob/develop/wp-api.js Backbone.js API
 client] proposed to be merged with the content endpoints. I was interested
 in seeing what it would look like to have Quick Posts operate exclusively
 on data from the posts endpoints, bootstrapping data on the initial page
 load using `rest_do_request` and maintaining a Backbone collection of
 drafts in browser state.

 WIP: https://github.com/aduth/wordpress-
 develop/compare/master...update/trac-38342-api-quick-draft

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


More information about the wp-trac mailing list