Bug - API submission results includes all children of the root project multiple times

Description

The API returns the root project with its own children and all children in the entire tree. This causes the response to be way too big.

Priority

High - the API is very broken even for tiny submissions

Definition of done

When only the tree is returned, not every node in a list.