Linked media, such as text, graphics, audio, and video, are referred to as hypermedia. Web applications are mainly simple text documents in HTML format that can also be regarded as states of these applications. Within the framework of the REST philosophy, the individual documents can always be addressed with a unique URL. If you transfer the concept to an ordinary online store, the following will result:
The document describing the state 'shopping cart' has a permanently assigned URI, for example: 'https://example.org/shoppingcart'. In the same style, there are also URIs for individual items that can be placed in the shopping cart – such as 'https://example.org/item/1', 'https://example.org/item/2', etc. Another possible state is the customer account, which can be accessed directly from the shopping cart and could have the following URI: 'https://example.org/customer/1'. Each individual document also contains links or hyperlinks to actions that the user could perform next.
In order to keep with the present scenario, this means that the shopping cart document also contains cross-references to the article and customer URIs. These could, in turn, contain further links to manufacturers or contractual documents. By means of a GET request, the client then moves through the store, or in this case, through the shopping cart thanks to the various hyperlinks, as the following simplified image illustrates: