简体   繁体   中英

prestashop web services not working with rest client

I want to consume PrestaShop web services with REST client. I used Chrome Advanced rest client .

My request URL is http://127.0.0.1:8090/prestashop/api/customers .

Headers are u: V7846EKZZJ1OJAW486D66IS7GO24XKUZ .

I am always redirecting to the PrestaShop home page with this request. If I erase htaccess file then I am getting 404 page not found error. I have enabled the web services with PrestaShop admin > advanced parameters > web services. There I enabled both "PrestaShop's webservice" and "Active mode CGI for PHP" and I also generated the above mentioned key and enabled it.

Use this as a workaround:

http://127.0.0.1:8090/prestashop/webservice/dispatcher.php?url=customers

It seems that URL rewriting needs to be enabled.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM