[wp-trac] [WordPress Trac] #43744: `WP_REST_Server::EDITABLE` should not contain POST

WordPress Trac noreply at wordpress.org
Thu Apr 12 09:55:40 UTC 2018


#43744: `WP_REST_Server::EDITABLE` should not contain POST
--------------------------+------------------------------
 Reporter:  soulseekah    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:
 Severity:  trivial       |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by swissspidy):

 Why are you unable to use `WP_REST_Server::EDITABLE` at all? Can you
 elaborate a bit? What's your use case.

 For history: editable has meant POST + PUT + PATCH since the project
 started during GSoC 2013: https://gsoc.trac.wordpress.org/changeset/1964

 As far as I understand it and how I've used REST principles in the past,
 is that a `POST` to a collection means creating a resource, and `POST` to
 a single resource is the same as using `PUT`.

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


More information about the wp-trac mailing list