Hi guys! I have some problems with Restful WS. I have these tables
client(id,name)
client_business(id_client, id_business, some_data)
business(id,name)
I can receive client_business table information from client table using this:
localhost/project/api/web/v1/clients?expand=clientBusiness
But I want to receive business table information from client table through client_business table so that I could receive something like this:
{
"id": 1,
"name": "James",
"business": [
{
"id": 1,
"name": "Company X"
}
}
}
I need your help. Thanks.