Quick revision
The short answer
The history shows that an architectural ideal only delivers value when the actual clients behave the way the ideal assumes. HATEOAS needs clients that discover actions at runtime, but most clients are written against documentation and generated SDKs, and tooling such as OpenAPI and code generation shaped practice more than REST theory. So we adopt the parts that reduce real cost, such as paging and state-dependent links, judge ideals by evidence from our own client base rather than by purity, and revisit them when conditions change, for example with AI agents or generic clients that do navigate links.
What to remember
In this answer, we read the history of HATEOAS as a lesson about ideals. Its benefits depended on clients discovering actions at runtime, while most clients were written against documentation and generated SDKs, and tooling shaped practice more than theory. So we adopt the parts with real consumers, such as paging and state-dependent links, judge ideals by evidence from our own client base rather than purity, and revisit decisions when conditions change, as AI agents and generic clients may now do.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
The history shows that an architectural ideal only delivers value when the actual clients behave the way the ideal assumes. HATEOAS needs clients that discover actions at runtime, but most clients are written against documentation and generated SDKs, and tooling such as OpenAPI and code generation shaped practice more than REST theory. So we adopt the parts that reduce real cost, such as paging and state-dependent links, judge ideals by evidence from our own client base rather than by purity, and revisit them when conditions change, for example with AI agents or generic clients that do navigate links.
Why this question is asked
Every architecture group meets ideals that are well argued, widely praised and rarely practised. HATEOAS is the cleanest example in our field: it has been part of the definition of REST since 2000, yet very few public APIs use it fully, and many successful ones use none of it. Interviewers ask this question at the most senior level to see how a candidate reasons about ideals in general, not only about links. In this answer, we will look at what HATEOAS assumed about clients, why practice went another way, what we can adopt profitably, how to evaluate ideals in our own organisation, and when to look again.
1What the Ideal Assumed
Roy Fielding's description of REST includes the hypermedia constraint: clients should drive an application by following links and forms provided by the server, knowing only an entry point and the meaning of media types and link relations. The web browser is the proof that this works. A browser knows nothing about any particular shop, yet it can use all of them, because pages tell it what links and forms exist.
The hidden assumption is that API clients would be like browsers: generic programs that interpret whatever the server offers at runtime. The benefits of HATEOAS, servers changing URLs and workflows freely, depend entirely on that assumption.
2Why Practice Went Another Way
Most API clients are not generic. They are programs written by a developer to do a specific job, such as creating an invoice in another system, and the developer reads documentation, decides which calls to make and writes them down. A program written that way gains little from discovering links at runtime, because its author already decided what it will do. When the server adds a new action, the client cannot use it until a developer writes code for it anyway.
Tooling reinforced this. Swagger and then OpenAPI made it easy to describe an API's URLs and payloads, and code generators turned those descriptions into typed SDKs in every language. Developers liked typed clients, IDE completion and generated documentation; these brought immediate productivity, while hypermedia's benefits were indirect and delayed. Practice followed the tools, and the tools described fixed URLs.
| Factor | Hypermedia ideal | What most clients did |
|---|---|---|
| How clients learn the API | at runtime, from links | at design time, from documentation |
| Client type | generic, like a browser | purpose-built program |
| Tooling | media types, link relations | OpenAPI and generated SDKs |
| Benefit timing | later, when the server changes | now, as typed code and completion |
3Adopting the Parts That Reduce Real Cost
The lesson is not that HATEOAS was wrong. Parts of it reduce real costs even for purpose-built clients. Paging links let clients loop with while (next != null) and let servers change paging internals. Links that appear only when an action is allowed save clients from copying business rules. Self links make resources easy to refer to. These parts have consumers today, so they earn their place; the parts without consumers, such as expecting partners to discover every URL at runtime, can be skipped without regret.
This is a pattern we can apply to any ideal: break it into parts, ask which parts have consumers in our context, and adopt those.
4Judging Ideals by Evidence From Our Own Clients
For an organisation's API strategy, the evidence that matters is about our own clients. Who are they, internal services, partners, mobile apps? How are they built, generated SDKs or hand-written? What has actually caused cost and incidents, URL changes, workflow rule changes, breaking payload changes? If our incident history shows that most breakages come from removed fields, a strong contract and diff tooling will help far more than hypermedia. If partners keep shipping bugs because they copy our state machine wrongly, state-dependent links address a real cost.
Judging by purity, this is more RESTful, tends to produce standards that teams follow on paper and work around in practice. Judging by evidence produces fewer rules, each one defensible.
- Split the ideal into concrete practicese.g. paging links, action links, runtime discovery
- Does a real client use this practice?YesMeasure the cost it removesNoSkip it for now
- Is the saving larger than the cost?YesAdopt it in the standardNoSkip it for now
- Record when to revisitconditions that would change the answer
4 steps in order. Play them, or step through them one at a time.
5Knowing When to Look Again
Conditions change, and an ideal that did not fit yesterday may fit tomorrow. The most interesting change today is the rise of AI agents and generic clients that read API descriptions and responses at runtime and decide what to do next. Such clients behave more like browsers than like purpose-built programs, so self-describing responses, links and affordances may become valuable again. A good strategy writes down the conditions under which it would revisit a decision, such as a significant share of traffic coming from generic or agent clients, and checks them periodically instead of treating today's answer as permanent.
6Follow-up questions
Does this mean architectural ideals are not useful?
They are useful as a source of options and as a way to understand trade-offs. The mistake is to adopt them wholesale because they are ideals. Taking each practice, checking whether our clients would use it and what it saves, keeps the value without the cost.
How would you explain this to a team that wants to adopt full HATEOAS?
I would ask them which clients will follow the links and what change those clients will survive that they would not survive today. If they have a concrete answer, such as a generic admin UI or partners whose workflow changes often, I would support it for that API. If not, I would suggest the parts with clear consumers.
What other ideals show the same pattern?
Canonical company-wide data models and strict layering are similar: sound in theory, but their benefit depends on conditions such as stable domains and disciplined consumers that often do not hold.
7Conclusion
In this answer, we read the history of HATEOAS as a lesson about ideals. Its benefits depended on clients discovering actions at runtime, while most clients were written against documentation and generated SDKs, and tooling shaped practice more than theory. So we adopt the parts with real consumers, such as paging and state-dependent links, judge ideals by evidence from our own client base rather than purity, and revisit decisions when conditions change, as AI agents and generic clients may now do.
Open with
What the history of HATEOAS tells me is that an ideal only delivers when its assumptions about the real world hold. Hypermedia assumed clients would behave like browsers, discovering what they can do from links at runtime.
Then, if they want more
In practice almost all API clients are purpose-built programs written by developers from documentation, increasingly as SDKs generated from OpenAPI. Those clients gain little from runtime discovery, because their authors already decided what they will do, and the tooling, OpenAPI and code generation, gave immediate productivity that shaped practice far more than REST theory did.
So when I evaluate an architectural ideal for our API strategy, I split it into concrete practices and ask which of them have real consumers among our clients and what cost they remove. From HATEOAS, that leads me to adopt paging links, self links and state-dependent action links, which save real effort, and skip full runtime discovery for most APIs.
I would base the decision on evidence from our own incidents and client base, not on purity, because purity-driven standards get followed on paper and worked around in practice. And I would write down when to revisit it; AI agents and generic clients that navigate links are exactly the kind of change that could make more of hypermedia worthwhile.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Framework reference, Spring Web MVC
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "HATEOAS has been recommended for two decades but few public APIs use it fully. What does...": https://scrivio-interview-library.netlify.app/spring-boot/rest-api-design/3ca2ee90f1/