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 ??
-
For all API or only for products?Keyur Shah– Keyur Shah2017年12月21日 10:18:49 +00:00Commented Dec 21, 2017 at 10:18
1 Answer 1
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!
-
Still i am getting same error, is possible using rest api without oAuth? @ Michael Leisszus– zus2018年10月25日 12:28:41 +00:00Commented 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 Leisszus– zus2018年10月27日 11:38:03 +00:00Commented Oct 27, 2018 at 11:38
-
For nginx, add this in the vhost file:
location /api { rewrite ^/api/rest /api.php?type=rest last; }kiatng– kiatng2021年04月15日 09:07:57 +00:00Commented Apr 15, 2021 at 9:07