Unable to access second level nested APIs of belongsTo OtherModel relation from code: to disable/ACL

6 views
Skip to first unread message

Ganesh B

unread,
Apr 22, 2018, 12:37:47 AM4/22/18
to LoopbackJS
Hi,

A quick question: I have nest APIs for belongsTo as true. How do I reference nested APIs for disabling method or adding ACLs? First level access using prototype.__create__orgGroups for GET /Orgs/{id}/orgGroup works fine. But the Second level nested API access for belongsTo relation using prototype.__create__orgGroups_Orgs or prototype.__create__orgGroups__get__Orgs for GET /Orgs/{id}/orgGroup/Orgs does not work.

Any help with how to access the method name?

Regards,
Ganesh
Reply all
Reply to author
Forward
0 new messages