Building HATEOAS-style Web APIs

The HATEOAS (Hypermedia as the Engine of Application State) style is yet another approach for providing efficient Web APIs. It is, however, completely different from the other two styles presented before. With this approach, clients can dynamically navigate to a needed resource by traversing various hypermedia links, which are provided in the HTTP responses.

The advantage of this style is that the server does not drive application state anymore; instead, it is the hypermedia links returned by the server that oversee that.

Additionally, when compared to the other styles, API changes are much better handled when using this style, since clients do not hardcode URIs to actions (RPC-style) or resources (REST-style) ...

Get Learning ASP.NET Core 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.