Re: [Specifications] Question about HATEOAS shortcuts (#189)

Regarding the actual problem you're trying to solve,

>  In those cases the client needs to know which links to follow to reach the a certain client state again

I think you're assuming that the client always has to start from the entrypoint. Thinking in terms of web browser analogy, you don not always have to start from scratch. The web browser can keep states between sessions as open tabs (implicit) or bookmarks (explicit). 

Your REST-driven application can also do the same. It would be the client's responsibility to keep track of its state so that the right requests can be made to rebuild the UI. This should have no bearing on the API itself, as it doesn't really care. 

-- 
GitHub Notification of comment by tpluscode
Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/189#issuecomment-482938202 using your GitHub account

Received on Sunday, 14 April 2019 09:36:09 UTC