Search code examples
magentomagento-1.7magento-1.4magento-1.5magento-1.6

In magento retrive the details of a single product by REST url


As I am new to magento, I have downloaded magento sample data to mysql database. In the browser if i give the REST URL like this: http://192.168.1.101:8010/magento/api/rest/products it returns the list of products in XML format. But i want the details of a single product. Then what I have to do??

http://192.168.1.101:8010/magento/api/rest/products is the url I got from the magento site.. But they havent give for the product details.

Do i need to wirte any code for my reqiurement??

For http://192.168.1.101:8010/magento/api/rest/customers it shows access denied... How can i get resolve of this..


Solution

  • please go thoroughly wiki of magento, it might help you.here is the link.

    For single product your REST request would be as follows magentohost/api/rest/products/8 where 8 is the id of product.

    For second question i.e "Accessed denied" is this due to permission , you have create consumer for admin or customer to get that resource. please check here