I'm experimenting with using Craft in a headless way and am successfully using the Element API to return all the data required to show individual pages.
However, to be able to show sub navigation and where a particular page fits into my site's 'structure' hierachy, I'd like to pull out the entire page hierarchy and then use that info in my application.
Does anyone know how to go about that using the Element API?
Thanks in advance for any clues.
Cheers,
Jim