Add support for nested endpoint recursion (sub-nesting)