Hi All,
I have a Customer model. I want only selected remote methods to be enabled. I am using the following code to achieve that.
"customer": {
"dataSource": "mongodb",
"public": true,
"options": {
"remoting": {
"sharedMethods": {
"*": false,
"findById": true,
"deleteById": true,
"testLogin": true,
"replaceById": true
}
}
}
}
Enabling replaceById enables the following API:
I want the PUT request to be enabled.
Alternatively I can also use disableRemoteMethods method to disable unwanted APIs.
How do I achieve that ? Also, which one of the above is the correct approach to disable remote methods?
Thanks