List Resource together with the child Records via REST API

Hello guys, is this possible?

[
    {
        "name": "Test Parent 1",
        "children": [
            {
                "name": "child 1"
            }
        ]
    },
    {
        "name": "Test Parent 2",
        "children": [
            {
                "name": "child 1"
            }
            {
                "name": "child 2"
            }
            {
                "name": "child 3"
            }
        ]
    },
    {
        "name": "Test Parent 3",
        "children": [
            {
                "name": "child 1"
            }
        ]
    }
]

Hello guys it is possible? or its only possible when getting specific parent table row?

doc.as_dict()

Can you specify which API you are using?

using the restapi localhost:8000/api/resource/Client?fields=[“*”]
using this api it return only the parent fields, not the child tables.

This is a frequently requested feature, but I don’t believe it is implemented. In general, List resource requests (whether REST API or python API) don’t include child document fields. If you need to get these in a single call, you would have to write a custom API endpoint.

As @peterg Said you need to write custom method to achieve this.

Okay guys Thanks thanks… I thought it is possible using the default api call.