Re:Undo
by barrkel on Wednesday November 20, 2013 @04:54AM
(#6767164)
If REST follows HATEOAS fully, the back button is 90% of your undo.
[ Parent
| on HN ]
Re:Undo
by joshguthrie on Wednesday November 20, 2013 @06:02AM
(#6767339)
I would like to know more about this implementation. I don't see how going back after a POST action is related to HATEOS.
Hmm. This would require a representation of the complete state history in resource urls, wouldn't it? I can only come up with something like /image/edit1/edit2/edit3/edit4 where going back would bring you to /image/edit1/edit2/edit3.
I suppose you can also do something state-based like /image/state4 going back to /image/state3. This would push the storage of the edit stack to the server.
Is this what you mean?