[wp-trac] [WordPress Trac] #44862: Create REST API endpoints to lock, release and takeover post edition
WordPress Trac
noreply at wordpress.org
Wed Mar 24 10:50:17 UTC 2021
#44862: Create REST API endpoints to lock, release and takeover post edition
-----------------------------+--------------------------------
Reporter: youknowriad | Owner: timothyblynjacobs
Type: feature request | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: | Focuses: rest-api
-----------------------------+--------------------------------
Comment (by spacedmonkey):
As part of the web stories plugin, I implement my own version of the post
locking endpoint [https://github.com/google/web-stories-
wp/blob/935bb08aba3e4ea35818db4a2f0b5dce1de2532a/includes/REST_API/Stories_Lock_Controller.php
here].
It is designed to be generic following this pattern.
GET wp/v2/{base}/{id}/lock
POST wp/v2/{base}/{id}/lock
DELETE wp/v2/{base}/{id}/lock
If people are interested, I can work on porting this endpoint to
WordPress.
@timothyblynjacobs @youknowriad are either of you interested in this
endpoint? If so, should with work be done core or in the gutenberg plugin?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44862#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list