Note: posted to the Developer community instead as pointed out by colleagues, but cannot remove here. Mods feel free to delete this post.
With the Confluence v1 API it was possible to get child contents via the content/<ID>/child/<TYPE> endpoints, where TYPE can be page, whiteboard, database, etc.
The ID in this case can refer to any content type, e.g. a Confluence database, to get its children.
To summarize, the v1 endpoint allows to get children of any content type from parents of any content type.
Now that the content/<ID>/child endpoint is deprecated, how to achieve the same using the v2 REST API?
There is a v2 endpoint to get child pages of pages: pages/<ID>/children. But what about the other content types? There is no databases/<ID>/children or whiteboards/<ID>/children, although those can have children as well.
Furthermore, it seems that pages/<ID>/children really just returns child pages, but not other child content types.
Is this how it's supposed to work?