Skip to content

Cannot disable PATCH /Model/{id} method #335

@gemabarni

Description

@gemabarni

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions