[wp-trac] [WordPress Trac] #46160: No route was found matching the URL and request method

WordPress Trac noreply at wordpress.org
Fri Feb 1 19:45:26 UTC 2019


#46160: No route was found matching the URL and request method
-------------------------------+-------------------------
 Reporter:  RogueWebDesign     |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  REST API           |     Version:
 Severity:  normal             |  Resolution:  worksforme
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+-------------------------

Comment (by TimothyBlynJacobs):

 This is likely because the method is only set to `POST`, so the REST API
 cannot generate a `GET` response that you'd see in your browser. You could
 simulate it by using the `_method` query arg:


 {{{
 http://trunk.test/wp-json/custom-namespace/v1/endpointtest?_method=post
 }}}

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


More information about the wp-trac mailing list