[wp-trac] [WordPress Trac] #44862: Create REST API endpoints to lock, release and takeover post edition
WordPress Trac
noreply at wordpress.org
Wed Aug 29 13:05:41 UTC 2018
#44862: Create REST API endpoints to lock, release and takeover post edition
-----------------------------+-----------------------------
Reporter: youknowriad | Owner: (none)
Type: feature request | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Keywords:
Focuses: rest-api |
-----------------------------+-----------------------------
**Context**
In this Gutenberg PR, we're trying to introduce post locking
https://github.com/WordPress/gutenberg/pull/4217
To do so, we're reusing the existing ajaxActions, and the the non-REST API
URLs to take over the posts. Ideally, we'd like to be able to lock, unlock
and takeover edition of posts without the need of a page refresh or usage
of ajax actions.
**Questions**
- I wonder if we should return an error in the PUT/DELETE requests on
single posts if the post is locked by another user. (Not required for the
ticket as a V1 but might be good to think about it).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44862>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list