我已经在function.php文件中创建了自定义帖子,它对我来说工作得很好。当我通过WordPressRESTAPI调用自定义post数据时,它在浏览器上显示错误。下面是在浏览器中显示的错误。code "rest_no_route"
message "No route was found matching the URL and request method
我想调用REST,传递包含反斜杠字符的参数。API需要一个类似于api/test/<app_name>/<user_name>的路由,例如,我希望将domain\login作为user_name的值传递。我用PowerShell试了一下:
$uri = [Uri]::EscapeUriString("http://localhost:5555/api/test/App Nam
我在CI3上开始了一个新项目。我用MAMP在我的MB上开发的。一切都很好! 今天下午,我尝试在我的VM服务器( Ubuntu 18.04,php 7.2.19 )上发布代码。localhost/index.php -> good
localhost/index.php/push/ -> 404 ( still working on MAMP ) 我尝试使用.htacces,在
但是,每当我运行测试用例时,它总是在以下错误中失败,Expected status code 200 but received404.Failed asserting that 200 is identical to 404.Component\HttpKernel\Exception\NotFoundHttpException: POST domainname/index.php/api/comp