首页 文章

magento中没有REST资源

提问于
浏览
1

对于使用magento rest api,我做了以下事情 .

In windows

  • 安装magento 1.7 CE with oauth(在phpinfo中检查) .

  • 创建了用户角色,并为访客用户授予了所有权限 .

  • 后来尝试通过URL访问其余资源

http://localhost:8036/magento/index.php/api/products/?type=rest http://localhost:8036/magento/api/products/?type=rest http://localhost:8036/magento/api/rest/products/
none of them worked. What can I do now? Any kind of help is appreciated. I have followed all the magento guidelies for REST.
``
In Ubuntu
done the same settings while accessing the rest resource via http://10.211.20.26/magento/api/rest/products/ Not Found The requested URL /magento/api/rest/products/ was not found on this server.

我的两个magento装置都有产品 .

1 回答

  • 2

    看来你的重写被打破了 . 我假设你正在运行Apache HTTPd,所以请检查Magento安装根目录中的.htaccess并确保你的重写有效 . 您可以通过取消注释相应的行来完成此操作 . 请使用RewriteLog和RewriteLogLevel指令将记录添加到重写引擎 .

相关问题