Skip to content

HATEOAS

HATEOAS makes available application transitions discoverable through hypermedia controls in received representations.

Version
v2 · 2026-10-03 · History
Domain-specific #
13297
Aliases
Hypermedia as the Engine of Application State

Core Idea

HATEOAS is the REST idea that a response offers links or actions the client can use to move to its next application state.

How would you explain it like I'm…

Follow the Buttons

Think of a choose-your-own-adventure book. Every page tells you which pages you can go to next, so you don't need a map of the whole book. You still need to know where the book starts and how to read the choices. HATEOAS asks computer programs to work the same way.

Next-Step Links

When you browse a website, you don't memorize every page address. You click the links the page shows you. HATEOAS is a rule for computer services that says each answer a program receives should include the links or actions it can take next. The program still has to know a starting address and understand what the links mean. It just doesn't need a hard-coded list of every possible route.

Hypermedia-Driven State Transitions

HATEOAS stands for "hypermedia as the engine of application state." It is one of the constraints of REST, a style for designing web systems. Each representation a client receives, such as a page or a data document, contains controls like links or forms that point to the next states available from there. The model case is a person clicking a link on a Web page. A program can do the same thing by reading typed links instead of relying only on a fixed map of every URL. This is not the same as the client knowing nothing beforehand. It must know an entry point and understand the protocol, the data format, and what each kind of control means.

 

HATEOAS is a constraint in Fielding's REST architectural style. Application state advances through hypermedia: each representation the client receives exposes the controls (links, forms, typed actions) available from the current state. The canonical picture is a human following links on a Web page, where the page itself tells you where you can go. A programmatic client can likewise discover transitions by inspecting link relations or action descriptions in the response. That way it does not depend solely on an out-of-band, hard-coded map of every URI and route. A common misreading is that HATEOAS makes the client fully generic or knowledge-free. In fact the client must still know an entry point, the protocol, the media type, and the semantics of the controls it encounters. What hypermedia removes is the need to hard-wire the full state-transition map, not the need for shared understanding.

Scope of Application

Web pages use links and forms; APIs can expose typed controls. A client still needs to understand the media and action meanings.

Boundary: Using HTTP or embedding arbitrary URLs does not by itself make an interface hypermedia-driven.

Clarity

Look for controls in the current representation, not merely URL strings or a separate route list.

Manages Complexity

Advertised transitions reduce hard-coded navigation assumptions but require a shared control vocabulary.

Abstract Reasoning

Start at an entry point, read the response's controls, choose one, perform it, and repeat with the new response. If the next page no longer offers an action, do not assume an old memorized route is still the right move.

Knowledge Transfer

Browser links and programmatic action relations share this pattern but use different syntaxes. The parent is Representation by strict presupposition: controls must be carried in a received representation, while the architectural constraint is not itself a kind of representation.

For example, a draft-order page might offer a confirmation form; the receipt page reached after submission offers a receipt link instead. This is an illustration of represented transitions, not a claim about a particular site.

Relationships to Other Abstractions

Local relationship map for HATEOASParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.HATEOASDOMAINPrime abstraction: Representation — presupposesRepresentationPRIME

Current abstraction HATEOAS Domain-specific

Parents (1) — outgoing typed relations

  • HATEOAS presupposes Representation Prime

    HATEOAS requires received representations to carry discoverable hypermedia controls for next application-state transitions.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

HATEOAS sits in a sparse region of the domain-specific corpus (85th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14