Re:Use links not keys to represent relationships in APIs
by ivanhoe on Sunday May 12, 2019 @07:56AM
(#19891373)
True, but isn't it the same with the IDs? You still have the problem of honoring previously-issued URI templates when you change the format.
[ Parent
| on HN ]
Re:Use links not keys to represent relationships in APIs
by theptip on Sunday May 12, 2019 @12:13PM
(#19892738)
This - and if your clients are getting their URLs from a downloaded swagger spec or even worse, from something they hardcoded, then the upgrade path is much worse with IDs.
With HATEOAS, at the best case is that clients just bump the entry point url (or even have it bumped for them) and then follow the links they are given. It's not possible to upgrade clients that way if they are constructing urls themselves.