Specify subresource columns
Posted: Sun May 23, 2021 5:55 pm
Hi, is it possible to specify subresource columns in a get method, for example if I want to get a job with his customer I make this request:
GET /jobs?columns=Customer
That returns something like this:
[
"ID": 47671,
"Customer": {
"ID": 14692,
"CompanyName": "stu hartill ltd",
"GivenName": "",
"FamilyName": ""
}, ...
]
But If I need the customer with his phone phone, is it possible to get it in one request? or is it need to get the service job and then make another request to get the customer with his phone?
GET /jobs?columns=Customer
That returns something like this:
[
"ID": 47671,
"Customer": {
"ID": 14692,
"CompanyName": "stu hartill ltd",
"GivenName": "",
"FamilyName": ""
}, ...
]
But If I need the customer with his phone phone, is it possible to get it in one request? or is it need to get the service job and then make another request to get the customer with his phone?