Tutorial by Examples

REST stands for REpresentational State Transfer and was coined by Roy Fielding in his doctoral thesis Architectural Styles and the Design of Network-based Software Architectures. In it he identifies specific architectural principles like: Addressable Resources: the key abstraction of informatio...
REST is a protocol-agnostic architecture proposed by Roy Fielding in his dissertation (chapter 5 being the presentation of REST), that generalizes the proven concept of web browsers as clients in order to decouple clients in a distributed system from servers. In order for a service or API to be RES...
The following examples use HAL to express HATEOAS, and make use of: CURIE (Compact URI): used to provide links to API documentation URI templates: URI that includes parameters that must be substituted before the URI is resolved Get blog 123 Request GET https://example.com/api/v1.2/blogs/123...
<stock> <add> <item> <name>Milk</name> <quantity>2</quantity> </item> </add> </stock> Putting this body to an resource like /stocks/123 violates the idea behind REST. While this bod...

Page 1 of 1