3 ms·
So here's something I've never quite understood when reading about HATEOAS: > Without hypermedia, the clients would probably have to parse the payload to see i
by Vinnl 10y ago
So here's something I've never quite understood when reading about HATEOAS:
> Without hypermedia, the clients would probably have to parse the payload to see if there are some kind of status and then evaluate that status to take a decision whether the order may or not be canceled.
In the given example, wouldn't the client still need to check whether there actually is a `cancel` link (and know that it _can_ be there), and decide whether or not to call it? In other words, isn't it unavoidable that there's business logic in the clients?