This is wrong IMO. You are storing this while HATEOAS should provide it to you. If you provide the pattern by yourself, HATEOAS is useless.

What if I change the pattern server-side?