REST Hateoas, managing CRUD on a ressource -


context

i m developping simple application in need use rest level 3 hateoas.

i m having 2 entities :

  • user
  • billing

i need, when add billing, reference user inside of it.

questions

what informations should send backend, frontend app, add hateoas reference, inside billing ressource, concerning user ?

i mean, inside body of request, should send url of user ressource ? or should send id of user, , making url discovering real user url ?


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -