Add API to get topic tree

Test Plan:
- None