3

my url pattern http://10.0.20.149/mindcomtest1/index.php/api/rest/products?page=1

I am trying to get the product details by hitting this url but getting 404 error any help would be appreciable ??

asked Dec 21, 2017 at 8:49
1
  • For all API or only for products? Commented Dec 21, 2017 at 10:18

1 Answer 1

4

As your question is not very precise, shows no effort that you have tried to make it work and we know nothing about your configuration one can only guess:

Could be that you are missing a rewrite rule in your .htaccess file

RewriteRule ^api/rest api.php?type=rest [QSA,L]

Did you enable that call for Guest user via system configuration? Otherwise you have to do oauth before!

answered Dec 21, 2017 at 10:34
3
  • Still i am getting same error, is possible using rest api without oAuth? @ Michael Leiss Commented Oct 25, 2018 at 12:28
  • Hello, i have all details: Consumer Key, Consumer Secret, Token Key, Token Secret still not working, i am using REST API in POSTMAN, return 404 Not Found 1 error, can you pls help me? workout : abc.com/api/rest/products?limit=2 @ Michael Leiss Commented Oct 27, 2018 at 11:38
  • For nginx, add this in the vhost file: location /api { rewrite ^/api/rest /api.php?type=rest last; } Commented Apr 15, 2021 at 9:07

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.