Message-ID: <430126488.375746.1710816343007.JavaMail.root@confluence-doc2-production> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_375745_1265161083.1710816343002" ------=_Part_375745_1265161083.1710816343002 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This tutorial explores how to create a small application to perform thes= e four basic operations for customers.
mod_rewrite
enab=
led (Apache only).The PrestaShop web service uses the REST architecture in order to be ava= ilable on as many platforms as possible, since the HTTP protocol and XML fi= les are understood by most platforms, if not all.
CRUD is an a= cronym that stands for "Create, Read, Update, and Delete". These are the fo= ur basic operations for managing data in an application.
REST defines roughly a style of softwar= e architecture, which promotes the use of HTTP methods when building web ap= plication, instead of custom methods or protocols such as SOAP or WSDL. It = defines several rules, including one that is similar to CRUD, which is desc= ribed below.
HTTP has several methods that can perform processing on data as defined = in the REST architecture, among which are 4 main methods. See this page: http://en.wikipedia.org/wiki/HTTP#Request_methods=
The table below offers a comparison with CRUD and SQL:
HTTP / REST |
CRUD |
SQL |
---|---|---|
POST |
Create |
INSERT |
GET |
Retrieve |
SELECT |
PUT |
Update |
UPDATE |
DELETE |
Delete |
DELETE |
Chapters 1, 2 and 3 are mandatory, as they contain the fundamental knowl=
edge for using the web service.
The next chapters, explores ways to inte=
ract with the web service using each of the REST operations, in order to gi=
ve you the tools to make a full CRUD application.
If you only want to re=
trieve data, for example when developing a web application to notify you of=
orders, you might only be interested in Chapter 4.
If you prefer to dev=
elop a more complete application, chapters 4 to 7 will interest you.
Cha=
pters 9 and 10 give you more detail on specific content management.
Finally, a cheat-sheet will give you quick hints and reminders.
Here are the chapters in this tutorial: