I was trying to disable all remote methods for my model except a few ones, but I found no way to disable PATCH /Model/{id} method. Theoretically it should be disabled by calling Model.sharedClass.disableMethodByName('patchAttributes'), but it still remains in the explorer. However when trying to invoke it, it returns with code 500 - "remoting.context option was removed in version 3.0. See https://docs.strongloop.com/display/APIC/Using%20current%20context for more details."
I guess it comes up because unlike other methods, this one is attached to the prototype of my model. (My model's base is the built-in user model.)
I was trying to disable all remote methods for my model except a few ones, but I found no way to disable PATCH /Model/{id} method. Theoretically it should be disabled by calling
Model.sharedClass.disableMethodByName('patchAttributes'), but it still remains in the explorer. However when trying to invoke it, it returns with code 500 -"remoting.context option was removed in version 3.0. See https://docs.strongloop.com/display/APIC/Using%20current%20context for more details."I guess it comes up because unlike other methods, this one is attached to the prototype of my model. (My model's base is the built-in user model.)