【发布时间】:2016-03-22 09:43:41
【问题描述】:
当我尝试使用 rest api 获取所有产品列表时。
http://magento-11498-25844-78339.cloudwaysapps.com/api/rest/products
显示 500 内部服务器错误
【问题讨论】:
-
请指导我解决此错误。
-
你找到解决办法了吗?
当我尝试使用 rest api 获取所有产品列表时。
http://magento-11498-25844-78339.cloudwaysapps.com/api/rest/products
显示 500 内部服务器错误
【问题讨论】:
我可以看到 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
【讨论】: