3 ms·
To me the best advantage is that by following links, the client doesn't have to builds those links in the first place. So the client will keep working even if
by fosk 10y ago
To me the best advantage is that by following links, the client doesn't have to builds those links in the first place.
So the client will keep working even if a few months from now you want to change the link to something else. A simple example: if retrieving articles can be done by requesting this link "/articles", I can potentially change it in the future to "/v2/articles" and the client would still work.
- funkymike 10y agoThe client may not have to build the links but it still has to be aware of their specifics. It has to know that /articles takes arguments X and Y, and that /v2/articles takes arguments Y and Z. You're trading building links to inspecting links. What advantages does this have?