当我尝试使用rest api获取所有产品列表时。
http://magento-11498-25844-78339.cloudwaysapps.com/api/rest/products
它显示500内部服务器错误
答案 0 :(得分:0)
我可以看到没有配置Magento rest API。以下两个步骤是必需的。 准备REST API
使用REST API资源需要这些步骤:
1. Set up permissions for REST resource operations from Magento Admin Panel.
2. Configure the attributes for different users types in Magento Admin Panel. There are 3 different types of users in accessing the data: Admin, Customer, and Guest. Admin is the backend logged in user, Customer is the fronted logged in user, and Guest is a non-logged in fronted user.
您也可以按照以下网址获取更好的帮助。 http://devdocs.magento.com/guides/m1x/api/rest/introduction.html
答案 1 :(得分:0)