Site icon Hip-Hop Website Design and Development

The way to show dad or mum class with first degree youngster in REST API

I need assistance on WP REST API
I wish to show Classes with a primary degree youngster with some attributes. Right here the way it ought to seem like:

{
  Father or mother
  "id": 3,
  "identify": "Soccer",
  "slug": "soccer"
  youngster {
            "id": 5,
            "identify": "League",
            "slug": "league"
    }
}

Please, anybody assist me…
Thanks