Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This tutorial shows you how to use the PrestaShop web service with PHP library by creating a "CRUD".
Prerequisites:
-              PrestaShop 1.4 installed on a server with "module rewrite" enabled for apache
-              A XAMPP server under PHP5
What is CRUD?
CRUD is an acronym that stands for "Create, Read, Update, Delete".
These are the four basic operations for managing data in an application.
The PrestaShop web service uses REST architecture in order to be available on as many platforms as possible, because HTTP and XML protocols are present on countless platforms.
What is REST?
REST defines an architecture that represents a set of good methods to practice on the web. It defines several rules, including one that we will describe that is similar to CRUD.
In HTTP we find four main methods that can perform processing on data that are defined in the REST architecture. This correspondence can also be done with CRUD:-         

  • GET

...

  • -> Retrieve
  • POST -

...

  • > Create
  • PUT -

...

  • > Update
  • DELETE -

...

  • > Delete
    Together we will look at how to create a small application to perform these four operations on our customers.
    Chapters 1, 2 and 3 are mandatory.
    In the next chapters

...

  • you'll learn how to interact with the web service with each of the CRUD operations to give you the keys to make a full CRUD.
    If you only want to retrieve data, for example in developing a web application to notify you of orders, you might only be interested in Chapter 4.
    If you prefer to develop a more complete application, chapters 4 to 7 will interest you.