Context
I m actually developping a simple application in which I need to use REST level 3 HATEOAS.
I m having two entities :
- User
- Billing
I need, when I add a billing, to reference the user inside of it.
Questions
What are the informations I should send to my backend, from my frontend app, to add the hateoas reference, inside the billing ressource, concerning the user ?
I mean, inside the body of the request, should I send the url of the user ressource ? Or should I send the id of the user, and then making an url discovering to get the real user url ?