In Spring Data Rest you can POST something like this to the table product_material which references product and material:
{
"product": "http://localhost:8080/api/products/70bdd2a0-3548-4158-b378-71850c4c1eb3",
"material": "http://localhost:8080/api/materials/1"
}
How can i implement this instead of using product's and material's id?