I'm working on a project and did already developed a few classes interrelated between them. Now I'm working in some ajax requests using JSON.
AFAIK these request return the main object and links to related objects, so we need to perform other requests to get some of the related data. For the sake of efficiency I would like to get, at least, part of the information of related records inside of the first request. Something like a Join query with the related records or part of then in the table view.
My app has an Alert class where issues are stored. Each Alert belongs to a Device:
Alert{Id, Message} *---1 Device {Id, SerialNumber, Name, ...}
So when I list an Alert I would like to see at least the Device name (a property of the Device).
To list Alerts I'm using /api/v1/Alert/.json
Is this possible somehow?