在 magento 上发出 REST 请求的 URL 是什么?
我的 Magento 安装在
http://myserver.com/
上的服务器根目录运行,没有 magento 目录。
我怎么知道网址?
REST API 中的所有 URL 都具有以下基本 URL。
http://myserver.com/api/rest/
例如,如果您想要 Magento 中的客户列表,请使用 GET HTTP 方法:
http://myserver.com/api/rest/customers
哪里
http://myserver.com/api/rest/ - endpoint
/customers - action URL
REST wiki 页面 有您需要的信息。
https://magentohost.example.com/api/rest/