Hypermedia as the Engine of Application State

Services usually deliver a state to clients via body content, response codes, and response headers. Above all, hypermedia-driven services (HATEOAS) include the URI of other resources within their responses. The following example describes the concept of HATEOAS:

{
"links": {
"self": { "href": "http://example.com/people" },
"item": [
{ "href": "http://example.com/people/1", "title": "Kendrick
West" },
{ "href": "http://example.com/people/2", "title": "Anderson
Rocky" }
]
},
}

The previous response provides a list of people, together with the URIs that specify detailed information of each person. Therefore, the client knows the right URI of the request to use in order to get the information regarding each resource.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.147.87