1

Am totally new to the magento and API's. I have gone through the Magento Rest Api Documentation.

I have created roles and users for rest api but in the documentation it is like http://magentohost/api/rest/. I have changed my domain in the place of magentohost and given but it is showing like:

Request does not match any route

Whether any code have to add to the link? How to do this.

Can anyone give me the clear idea?

0

URL api/rest is only endpoint. To get specific data you have to add action URL.

For example to fetch customers you have to call :

HTTP GET mydomain/api/rest/customers

Example here : http://devdocs.magento.com/guides/m1x/api/rest/Resources/resource_customers.html

  • Simply giving mydomain_name/api/rest/consumer is enough or else Whether I need add any code or module in our file? – Gowri Shankar Aug 2 '17 at 10:58
  • Hard to say. Maybe add some example code in your question? – rafal-kos Aug 2 '17 at 10:59
  • I will explain clearly. I didn't add any code or module to generate rest api key. Simply I did Rest-Roles and changed the resources as All for Guest and same for Rest-Atributes. After doing this, I have given the url mydomain_name/api/rest/consumer. But its showing only "<magento_api/>". Whether I need to use any code? – Gowri Shankar Aug 2 '17 at 11:13
  • Have u got cleared with my ques? – Gowri Shankar Aug 2 '17 at 11:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.