Question

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..

Was it helpful?

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top