Say for example, I have a page called Events
with a number of children. I was wondering if there was any way to access a child page directly via the API like so:
api/pages/events/child_event_slug
Or is the only way to do this via api/pages/events/search?q=child_event_slug
This gets even more complicated if children are nested any more deeply, eg:
pages/events/child_event/grand_child_event
I’m wondering if I’m missing something obvious or if I just need to create a custom endpoint?