Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prestashop webservice API didn't work

I has been installed pastershop version prestashop_1.5.4.1. My site is host on localhost like "localhost/myprestashop". When I read documentation that calling prestashop webservice, it's pretty easy. But, when I call like that "localhost/myprestashop/api", it's didn't work. I didn't see any xml result. I see "Not Found" Message at below.

enter image description here

I already enabled webservice and generate key. But, it's didn't work. Please point out me what kinds of problem in here. Webservice generate image is here.

enter image description here

like image 321
502_Geek Avatar asked Aug 23 '13 03:08

502_Geek


2 Answers

Test this urls in your browser:

http://keyapi@localhost/api/customers ==> Replace keyapi string for your key api.

or

http://localhost/myprestashop/i/categories/5

Regards

like image 53
esmoreno Avatar answered Oct 21 '22 14:10

esmoreno


You need to enable the url rewrite on your hosting and on your PrestaShop (in your SEO tab). That should solve your problem.

like image 1
Rémi Gaillard Avatar answered Oct 21 '22 14:10

Rémi Gaillard