This is probably a really basic question about REST APIs. I just started reading the docs and don't see how to implement an API for an object/model that has sub-objects. Instead there is only a description of objects with primitives only (int, string, etc).
Is there an example with an object hierarchy? Or maybe the server model just uses IDs in class definitions to refer to sub-objects, like how Google's NDB does it?