How to get the associated data of a certain document through REST API?

I get Customer and Address through REST API, parameter fields are set to *.

The Customer API responds as follows:

{
    "data": [
        {
            "name": "aa",
            "creation": "2023-05-25 16:55:02.552157",
            "modified": "2023-08-02 15:06:15.082843",
            "modified_by": "Administrator",
            "owner": "Administrator",
            "docstatus": 0,
            "idx": 0,
            "naming_series": "CUST-.YYYY.-",
            "salutation": null,
            "customer_name": "aa",
            "customer_type": "Individual",
            "customer_group": "All Customer Groups",
            "territory": "All Territories",
            "gender": null,
            "lead_name": null,
            "opportunity_name": null,
            "account_manager": null,
            "image": null,
            "default_price_list": null,
            "default_bank_account": null,
            "default_currency": null,
            "is_internal_customer": 0,
            "represents_company": null,
            "market_segment": null,
            "industry": null,
            "customer_pos_id": null,
            "website": null,
            "language": "en",
            "customer_details": null,
            "customer_primary_contact": null,
            "mobile_no": null,
            "email_id": null,
            "customer_primary_address": null,
            "primary_address": null,
            "tax_id": null,
            "tax_category": null,
            "tax_withholding_category": null,
            "payment_terms": null,
            "loyalty_program": null,
            "loyalty_program_tier": null,
            "default_sales_partner": null,
            "default_commission_rate": 0.0,
            "so_required": 0,
            "dn_required": 0,
            "is_frozen": 0,
            "disabled": 0,
            "_user_tags": null,
            "_comments": null,
            "_assign": null,
            "_liked_by": null,
            "shopify_customer_id": null
        }
    ]
}

The Address API responds as follows:

{
    "data": [
        {
            "name": "aa-Shipping",
            "creation": "2023-05-25 16:55:03.222225",
            "modified": "2023-05-25 18:51:00.408055",
            "modified_by": "Administrator",
            "owner": "Administrator",
            "docstatus": 0,
            "idx": 0,
            "address_title": " aa",
            "address_type": "Shipping",
            "address_line1": "HK",
            "address_line2": null,
            "city": "HK",
            "county": null,
            "state": "Kowloon",
            "country": "Hong Kong",
            "pincode": null,
            "email_id": "test@gmail.com",
            "phone": null,
            "fax": null,
            "is_primary_address": 0,
            "is_shipping_address": 0,
            "disabled": 0,
            "_user_tags": null,
            "_comments": null,
            "_assign": null,
            "_liked_by": null,
            "tax_category": null,
            "is_your_company_address": 0,
            "shopify_address_id": null
        }
    ]
}

Is there a way to achieve my purpose in REST API? Or how to judge relevance from existing responses?

The currently known solution seems to be through the framework’s functions.