Magento – How to create Rest API for the Magento 1.9 hosted in local machine

magento-1.9rest

I have followed the below steps for authentication for REST API

Then I have tried to access this link

The error response which I got is

<magento_api>
<messages>
<error>
<data_item>
<code>404</code>
<message>Request does not match any route.</message>
</data_item></error>
</messages>
</magento_api>

Please help us how to make it up & reachable , how to get response from the request,
which is the url to access the rest api.

Let me know if I missed anything in the above configuration.

Best Answer

Seems the path is wrong. Is your base install at http://127.0.0.2 or http://127.0.0.2/magento ? Try visiting both locations and make sure the base url is viable.

Once that's set. Try again, hopefully you get another response like the following: {\"messages\":{\"error\":[{\"code\":401,\"message\":\"oauth_problem=parameter_absent&oauth_parameters_absent=oauth_token\"}]}}

Please review the following resources and build on the original question for additional feedback.

Ref:

http://devdocs.magento.com/guides/m1x/api/rest/testing_rest_resources.html http://devdocs.magento.com/guides/m1x/api/rest/introduction.html