-
Book Overview & Buying
-
Table Of Contents
Magento 2 Developer's Guide
Magento supports both SOAP (short for Simple Object Access Protocol) and REST (short for Representational State Transfer) types of communication with the Web API. Authentication methods themselves are not really bound to any of them. We can use the same authentication method and Web API method calls with both SOAP and REST.
Some of the REST specifics we might outline as follows:
We run REST Web API calls through cURL commands or a REST client.
Requests support HTTP verbs: GET, POST, PUT, or DELETE.
A HTTP header requires an authorization parameter, specifying the authentication token with the Bearer HTTP authorization scheme, Authorization: Bearer <TOKEN>. <TOKEN> is the authentication token returned by the Magento token service.
We can use the HTTP header Accept: application/<FORMAT>, where <FORMAT> is either JSON or XML.
Some of the SOAP specifics we might outline as follows:
We run SOAP Web API calls through cURL commands or a SOAP client.
A Web Service...
Change the font size
Change margin width
Change background colour