Access/GET Dynamic Links/Child Table in REST API

You can try this Server Script:

docType = frappe.form_dict.docType
if not docType:
    frappe.throw("Parameter docType missing")
    
frappe.response['data'] = frappe.db.get_list(docType, fields=["*"])

Usage: http://localhost:8000/api/method/get_list?docType=Employee%20Skill

Set it up like this and make sure that Server is enabled (see Server Script):

1 Like