Jump to content

Recommended Posts

I would like to create a customer webservice in prestashop from scratch.

For example:

 

In my store I have a section say "Automobiles", and I want an API, which does Insertion, Updation and Deletion through webservice.

Also the custom API should have <language> tags to handle multi language support.

 

I know custom API is possible, but I am not sure at the <language> part. A sample xml which I need to generate for 'get automobiles' api is mentioned below for reference.

 

 

<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<automobiles>
    <id>4</id>
    <name>

          <language id="12" xlink:href="http://mysite.com/api/languages/12">Ascicromazs</language>

          <language id="13" xlink:href="http://mysite.com/api/languages/13">Zepeciponz</language>

    </name>
</automobiles>
</prestashop>

 

How will I create a custom API in the above mentioned format.

Any help will be much appreciated. Thanks in advance.

Link to comment
Share on other sites

×
×
  • Create New...