I have two models Parent and Child and relation like this.
Parent --> hasAndBelongsToMany --> Child
Child --> hasAndBelongsToMany --> Parent
and I got
GET /Parents/{id}/students
GET /Parents/{id}/students/{pk}
GET /Parents/{id}/students/rel/{pk}
... etc.
I can hide GET /parents with.
Parent.sharedClass.find('find', true).shared = false;
How about relations to child model the code below not working?
Parent.sharedClass.find('__get__students', true).shared = false;
OR
Parent.sharedClass.find('__get__students', false).shared = false;
I have two models Parent and Child and relation like this.
Parent --> hasAndBelongsToMany --> Child
Child --> hasAndBelongsToMany --> Parent
and I got
GET /Parents/{id}/students
GET /Parents/{id}/students/{pk}
GET /Parents/{id}/students/rel/{pk}
... etc.
I can hide GET /parents with.
How about relations to child model the code below not working?
OR