Prestashop webservice API did not work

I installed the version of pastershop prestashop_1.5.4.1. My site is a host on a local host, for example "localhost / myprestashop" . When I read the documentation that calls prestashop's preliminary web service, this is pretty easy. But, when I call it "localhost / myprestashop / api" , it did not work. I have not seen any xml result. I see the message "Not Found" below.

enter image description here

I have already enabled webservice and generated the key. But that did not work. Please indicate to me what problems are here. Webservice will generate an image here.

enter image description here

+6
source share
4 answers

Check these URLs in your browser:

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

or

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

Hello

+3
source

You need to enable URL rewriting on your hosting and in your PrestaShop (on the SEO tab). This should solve your problem.

+1
source

Make sure you have the Webservice enabled in the Advance Parameters-> Webservice, and then in the configuration section.

0
source

Try the following: You need to pass the key, as described in our documentation, as localhost / yourshop.com / api /? Ws_key = YOUR_KEY

0
source

Source: https://habr.com/ru/post/952330/


All Articles