I would like to display nested entities in the Django REST response – not hyperlinked entities or primary keys - the actual entity inside the parent.
This would look something like this:
{ 'id': 5
  'name' : 'blah'
  'children' : [
      {'id' : 77, 'foo' : 'bar'},
      {'id' : 78, 'foo' : 'bar'},
      ...
  ]
}
This is mentioned in the REST documentation as one possible way of representing relationships between entities, but the documentation doesn't indicate how it can be done.
 
    