In this section, we will recapitulate the basics of RESTful Web Services. You will learn about the basic architectural goals of REST Web Services and the most common protocol semantics of the Hypertext Transfer Protocol (HTTP), which is commonly used to implement such services.
The term Representational State Transfer was coined by Roy Fielding in 2000 and describes an architectural style for distributed systems that is, in principle, independent of any concrete communication protocol. In practice, most REST architectures are implemented using the Hypertext Transfer Protocol - in short, HTTP.
The key component of each RESTful Web Service is the resource. Each resource should meet the following requirements:
Addressability: Each resource must be identifiable by a Uniform Resource Identifier (URI), which is standardized in RFC 3986. For instance, a user with the username
johndoe
might have the URIhttp://example.com/api/users/johndoe
.Statelessness: The participants...