How to return a record object with self-referencing link in Spring?
I have a record User: public record User(int id, String name, int age, Boolean isMale) then I want to create a GET method leveraging Spring HATEOAS to easily add self-referencing links to my API responses. I created a method getUserById but I’ve been racking my brain how to add a link to a user. I’ve … Read more