[BACKLOG-194] -- Updated doGetTree rest endpoint