I'm considering HATEOAS for one of my application but for that, I need to be sure that it fits my needs. One of them is the ability to support direct links such as "https://www.webapp.com/user/1" for example. In this case, when the user lands on this page, the js code is supposed to fetch the user with ID 1. How am I supposed to do this with HATEOAS? Indeed, normally, I only know the root URL of the web service and I'm supposed to "discover" the other URLs but if the user clicks on this link in a mail, he will end up on the site that won't know the URL to the user web service.
Am I supposed to make a first request to retrieve some data about main URLs or something ?