I added a layer to the rest api but this does not appear in the component explorer.
// member.json
"relations": {
"corporates": {
"type": "hasMany",
"model": "Corporate",
"foreignKey": "",
"options": {
"validate": true,
"forceId": false
}
},
...
}
// corporate.json
"relations": {
"contests": {
"type": "hasMany",
"model": "Contest",
"foreignKey": "",
"options": {
"validate": true,
"forceId": false
}
},
"member": {
"type": "belongsTo",
"model": "Member",
"foreignKey": "",
"options": {
"validate": true,
"forceId": false
}
}
},
// in boot script
Member.nestRemoting('corporates');
Now I can make calls, eg with postman, like this:
/api/Members/<memberid>/corporates/<corporateid>/contests
But in the component explorer these routes are not displayed.
It's a bug? If not it would be very nice as a new feature!
I added a layer to the rest api but this does not appear in the component explorer.
Now I can make calls, eg with postman, like this:
But in the component explorer these routes are not displayed.
It's a bug? If not it would be very nice as a new feature!