Reducing duplicate code in our applications using HATEOAS | Dark Hacker News