The architectural idea of the Representational State Transfer does not prescribe any technology for implementation. In practice, however, REST is always implemented using the HTTP protocol. The resources are addressed with a unique URI (Uniform Resource Identifier) as known from the web browser. The resource parameters are appended as a query (also known as URL parameters).
The actions on the resources are converted in HTTP with the standard actions GET, POST, PUT and DELETE. The following standard applies:
- GET retrieves one or more resources
- POST creates a new instance of a resource
- PUT writes data to a resource and changes it
- DELETE deletes an instance of a resource
A REST call to retrieve a specific production order from a REST capable ERP system could look like this over an existing http connection
The second line tells the ERP system in which format the response should be sent.
A possible response in JSON format would be
“Article”: “Product A”,
“Delivery date”: “21.7.2020”