10

I have searched for the products like this localhost/api/rest/products

But it is directly redirecting to Homepage of localhost. I have generated all the keys and tokens and i tried this also: 127.0.0.1/rest/api/products

4

https://www.ask-sheldon.com/magento-enable-rest-api-in-htaccess/

Did you activate the REST Api in .htaccess?

  1. change Options +FollowSymLinks to Options +FollowSymLinks -MultiViews
  2. uncomment RewriteRule ^api api.php?type=rest [QSA,L]
  • If Adrians or my answer solved your problem, please mark it as solution. – Fabian Blechschmidt Aug 4 '15 at 5:59
  • Actually I dont know ..How to do that sir – Sudhir Belagali Aug 4 '15 at 6:03
  • Welcome to MageOverflow Sudhir! :-) – Fabian Blechschmidt Aug 4 '15 at 6:08
  • I've tried this but still it will redirect to the homepage. Is there anything else? – user2924019 Jan 23 '19 at 16:36
4

The path is localhost/api/rest/products.

  • Much of the documentation doesn't mention this. Thanks!! – user2924019 Jan 23 '19 at 16:36

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.